Professional Documents
Culture Documents
Definition of Fauna Rhythms. - Eng
Definition of Fauna Rhythms. - Eng
Data Structures
1 - STIMULI Lv. 2 - STIMULI QUEUE 3 - CURRENT ACTION Lv
Hydration 5 Food
Shelter 2 Hydration
Socialization 8 Shelter
Sleep 0
Structure of stimuli mechanics.
Explanation
The mechanics of fauna rhythms starts from the definition of common stimuli (1) for all
beings.
Each stimulus is incremented according to rules determined by the species of a being.
Each time a stimulus increases, the stimulus queue (2) is recalculated.
The first stimulus in the queue is removed and placed as a current action (3).
When the current action has satisfied the stimulus, this is placed at the bottom of the queue
and reset to 0 while the first-placed stimulus in the queue is given current action.
And so on…
Depending on the species, stimuli have a default growth, but some actions can modify the
growth rate (both increasing and decreasing).
Ie: When an animal sleeps, it will not have the desire to move or look for shelter (so the motion or
shelter value will be blocked at 0), hunger and thirst undergo a decrease in growth (eg may grow by
half the normal value), instead, if an animal is moving, hunger and thirst will increase faster.