flock 
Vars | |
| active_pings | A k:V list of client : image, see ping(). |
|---|---|
| bits | The bits |
| compute | The total amount of computational power available, before whats being used. |
| drones | The drones |
| enemies | A k:v list of mob : details, contains enemy mobs. |
| ignores | A k:V list of mob : TRUE, where mob is mobs that ai will ignore. |
| marked_for_deconstruction | A k:V list of atoms the Overmind has marked for conversion, where the value is TRUE |
| max_traces | The maximum amount of traces allowed. |
| notice_images | Cache of images used by notices. |
| overmind | The master of the flock |
| structures | Every structure we've built. |
| traces | The traces |
| turf_reservations | A k:V list of reserved_turf = TRUE. |
| turf_reservations_by_flock | A k:V list of flock mobs to their reserved turf. |
| ui_tab | Current UI tab, saves on data sending. |
| used_compute | The computational power being used. |
Procs | |
| add_compute_influence | Wrapper for handling compute alongside used_compute for new mobs |
| available_compute | Returns the amount of available compute. Can return negative if over budget. |
| can_afford | Returns TRUE if the flock has the required compute |
| consider_game_over | Ends the flock if it is unable to continue spreading. |
| convert_turf | Convert a turf and claim it for the flock. |
| free_turf | Free a turf from reservation, allowing AI to target it again. override_turf can be given to lookup the user if there isnt a user in this context. |
| is_mob_enemy | Returns TRUE if the given mob is an enemy. |
| is_mob_ignored | Returns TRUE if the given mob is ignored by the flock. |
| is_turf_free | Returns TRUE if the given turf is not reserved. |
| register_overmind | Sets the flock's overmind |
| remove_compute_influence | Wrapper for handling compute alongside used_compute for mobs leaving the flock |
| reserve_turf | Reserves a turf, making AI ignore it for the purposes of targetting. |
| start | Called after everything is setup, and clients are in control of their mobs. |
| update_enemy | Updates a mob's enemy status. If they are already an enemy, their entry will be updated with new information. |
Var Details
active_pings 
A k:V list of client : image, see ping().
bits 
The bits
compute 
The total amount of computational power available, before whats being used.
drones 
The drones
enemies 
A k:v list of mob : details, contains enemy mobs.
ignores 
A k:V list of mob : TRUE, where mob is mobs that ai will ignore.
marked_for_deconstruction 
A k:V list of atoms the Overmind has marked for conversion, where the value is TRUE
max_traces 
The maximum amount of traces allowed.
notice_images 
Cache of images used by notices.
overmind 
The master of the flock
structures 
Every structure we've built.
traces 
The traces
turf_reservations 
A k:V list of reserved_turf = TRUE.
turf_reservations_by_flock 
A k:V list of flock mobs to their reserved turf.
ui_tab 
Current UI tab, saves on data sending.
used_compute 
The computational power being used.
Proc Details
add_compute_influence
Wrapper for handling compute alongside used_compute for new mobs
available_compute
Returns the amount of available compute. Can return negative if over budget.
can_afford
Returns TRUE if the flock has the required compute
consider_game_over
Ends the flock if it is unable to continue spreading.
convert_turf
Convert a turf and claim it for the flock.
free_turf
Free a turf from reservation, allowing AI to target it again. override_turf can be given to lookup the user if there isnt a user in this context.
is_mob_enemy
Returns TRUE if the given mob is an enemy.
is_mob_ignored
Returns TRUE if the given mob is ignored by the flock.
is_turf_free
Returns TRUE if the given turf is not reserved.
register_overmind
Sets the flock's overmind
remove_compute_influence
Wrapper for handling compute alongside used_compute for mobs leaving the flock
reserve_turf
Reserves a turf, making AI ignore it for the purposes of targetting.
start
Called after everything is setup, and clients are in control of their mobs.
update_enemy
Updates a mob's enemy status. If they are already an enemy, their entry will be updated with new information.