/datum/flock
manages and holds information for a flock
Vars | |
achievements | list of strings that lets flock record achievements for structure unlocks |
---|---|
active_names | associative list of used names (for traces, drones, and bits) to true values |
annotation_imgs | Static cache of annotation images |
annotations | Associative list of objects to an associative list of their annotation names to images |
current_egg_cost | The current cost of laying a flockdrone egg, automatically updated when drones are added and removed |
dead | Are we the memory of a dead flockmind? |
flockmind_mind | Store the mind of the current flockmind |
free_traces | number of zero compute flocktraces the flock has |
last_relay | The last relay placed, in case admin intervention or respawns somehow. |
max_trace_count | max number of flocktraces the flock can support |
quiet | Do we broadcast system announcements? |
relay_allowed | Can this flock realize the relay? |
relay_finished | Relay has exploded. Game over! |
relay_in_progress | Relay is in the process of being made real, gibs and all |
relay_stage | If we can, how far are we to transmitting the Signal? |
time_left | How long until the last placed relay transmits the Signal |
trace_minds | Store a list of all minds who have been flocktraces of this flock at some point, indexed by name |
units | Stores associative lists of type => list(units) - do not edit directly, use removeDrone() and registerUnit() |
Procs | |
achieve | Unlock an achievement (string) if it isn't already unlocked |
addAnnotation | Add a named annotation |
build_annotation_imgs | Init annotation images to copy |
getAnnotations | proc to get the indexed list of annotations on a particular mob |
hasAchieved | Unlock an achievement (string) if it isn't already unlocked |
notifyRelockStructure | This function only notifies the flock of the relock, actual unlock logic is handled in the datum |
notifyUnlockStructure | This function only notifies the flock of the unlock, actual unlock logic is handled in the datum |
perish | if real is FALSE then perish will not deallocate needed lists (used for pity respawn) |
relay_process | Process to check what to do with the relay based off compute/tiles, specifically for before placement |
removeAnnotation | Remove a named annotation |
toggleAnnotation | Toggle a named annotation |
update_computes | Update the compute values for all flocktraces and the flockmind |
update_stage | Get the new stage of the relay. Return if the state has changed. |
update_tiles | Update the tile count values for all flocktraces and the flockmind |
Var Details
achievements
list of strings that lets flock record achievements for structure unlocks
active_names
associative list of used names (for traces, drones, and bits) to true values
annotation_imgs
Static cache of annotation images
annotations
Associative list of objects to an associative list of their annotation names to images
current_egg_cost
The current cost of laying a flockdrone egg, automatically updated when drones are added and removed
dead
Are we the memory of a dead flockmind?
flockmind_mind
Store the mind of the current flockmind
free_traces
number of zero compute flocktraces the flock has
last_relay
The last relay placed, in case admin intervention or respawns somehow.
max_trace_count
max number of flocktraces the flock can support
quiet
Do we broadcast system announcements?
relay_allowed
Can this flock realize the relay?
relay_finished
Relay has exploded. Game over!
relay_in_progress
Relay is in the process of being made real, gibs and all
relay_stage
If we can, how far are we to transmitting the Signal?
time_left
How long until the last placed relay transmits the Signal
trace_minds
Store a list of all minds who have been flocktraces of this flock at some point, indexed by name
units
Stores associative lists of type => list(units) - do not edit directly, use removeDrone() and registerUnit()
Proc Details
achieve
Unlock an achievement (string) if it isn't already unlocked
addAnnotation
Add a named annotation
build_annotation_imgs
Init annotation images to copy
getAnnotations
proc to get the indexed list of annotations on a particular mob
hasAchieved
Unlock an achievement (string) if it isn't already unlocked
notifyRelockStructure
This function only notifies the flock of the relock, actual unlock logic is handled in the datum
notifyUnlockStructure
This function only notifies the flock of the unlock, actual unlock logic is handled in the datum
perish
if real is FALSE then perish will not deallocate needed lists (used for pity respawn)
relay_process
Process to check what to do with the relay based off compute/tiles, specifically for before placement
removeAnnotation
Remove a named annotation
toggleAnnotation
Toggle a named annotation
update_computes
Update the compute values for all flocktraces and the flockmind
update_stage
Get the new stage of the relay. Return if the state has changed.
update_tiles
Update the tile count values for all flocktraces and the flockmind