#include <MoveSystem.hpp>
◆ MoveSystem()
ECS::MoveSystem::MoveSystem |
( |
const std::shared_ptr< ComponentManager > & |
componentsManager, |
|
|
const std::shared_ptr< EntityManager > & |
entityManager |
|
) |
| |
It's a constructor for the MoveSystem class
- Parameters
-
componentsManager | The ComponentManager that the system will use to get components from. |
entityManager | The entity manager that the system will use to get entities. |
◆ ~MoveSystem()
ECS::MoveSystem::~MoveSystem |
( |
| ) |
|
|
default |
◆ checkIsValidEntity()
bool ECS::MoveSystem::checkIsValidEntity |
( |
Entity |
entity | ) |
|
|
virtual |
If the entity has a position, speed, and acceleration component, then it's a valid entity
- Parameters
-
entity | The entity to check |
- Returns
- A boolean value.
Implements ECS::System.
◆ setClock()
void ECS::MoveSystem::setClock |
( |
std::shared_ptr< Clock > |
clock | ) |
|
This function sets the clock for the MoveSystem.
- Parameters
-
clock | A pointer to the clock that the system will use to determine how much time has passed since the last update. |
◆ update()
void ECS::MoveSystem::update |
( |
| ) |
|
|
virtual |
It gets the entities to update from the clock, then it checks if the entity has the required components, and if it does, it updates the position of the entity
Implements ECS::System.
The documentation for this class was generated from the following files: