![]() |
R-Type
2
Doom but in better
|
Go to the source code of this file.
Functions | |
void | ai_system (Registry &r, ComponentContainer< Behaviour > &behaviours, ComponentContainer< Velocity > &velocities) |
AI system that updates the behaviour and velocity of entities. | |
void ai_system | ( | Registry & | r, |
ComponentContainer< Behaviour > & | behaviours, | ||
ComponentContainer< Velocity > & | velocities ) |
AI system that updates the behaviour and velocity of entities.
This function implements the AI logic for entities, updating their Behaviour
and Velocity
components based on the time elapsed (delta_time
). The AI may change the entity's state or move it depending on its behaviour.
r | The Registry that holds all the game entities and their components. |
behaviours | The container of the component Behaviour . |
velocities | The container of the component Velocity . |
Definition at line 6 of file AISystem.cpp.