Expand description
How characters act: the citizen AI and its activities, the agents that run citizens and animals, characters and their action stacks, animation and commuting.
Modules§
- activities
- What each activity of the citizens’ AI does. See docs/CITIZEN-AI.md. Only the parts of the town
that the activities ask about are modelled here, in
TownView. - agents
- The citizens’ CharacterComponent and CitizenAIComponent run together each simulation iteration. See docs/CITIZEN-AI.md.
- ai
- CitizenAIComponent: choosing what a citizen does next. See docs/CITIZEN-AI.md.
- animation
- Animation as the engine plays it: sampling a pose, the clock of each playing clip, and the events (such as sounds) a clip fires.
- character
- CharacterComponent and the
Actiontask stack it runs. See docs/CITIZEN-AI.md. - character_
tree - The characters’ spatial tree: a loose quadtree of the CharacterComponents, which the tornado’s victims and the hunters’ prey are searched in.
- commute
- The town’s commute optimisation, run from StockManager::Update every 300 s of game time. See docs/COMMUTE.md.
- loiter_
order - The original’s Loiter picks, measured in a run of the original, for comparing draws past them.
- sounds
- The sound events a character’s animation fires (
AnimAudioEvent): a hammer on an anvil, an axe, a chicken. Each one fired draws from the game’s random numbers, so they are part of the simulation even though they only make a sound. See docs/AUDIO.md.