Skip to main content

Module mobiles

Module mobiles 

Source
Expand description

Writer of the AI’s characters (CAI_WORLD_CHARACTERS), mobiles (CAI_WORLD_RESOURCE_MOBILES: forces, and agents moving on their own) and units (CAI_WORLD_UNITS).

Structs§

MobileInputs
What the mobiles’ records need beyond the world and the plan.

Functions§

mobile_cells
Returns where each mobile stands, in creation order: its component and the cell of its CAI_SITUATED.
write_characters
Writes the characters list, faction by faction.
write_mobiles
Writes the mobiles list: each force, and each agent moving on its own, in character order.
write_units
Writes the units list: each force’s units, in character order.