#include <GraphicSystem.hpp>
◆ GraphicSystem()
ECS::GraphicSystem::GraphicSystem |
( |
const std::shared_ptr< ComponentManager > & |
componentsManager, |
|
|
const std::shared_ptr< EntityManager > & |
entityManager |
|
) |
| |
It's a constructor for the GraphicSystem 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. |
◆ ~GraphicSystem()
ECS::GraphicSystem::~GraphicSystem |
( |
| ) |
|
|
default |
◆ checkIsValidEntity()
bool ECS::GraphicSystem::checkIsValidEntity |
( |
Entity |
entity | ) |
|
|
virtual |
If the entity has a position, rotation, and texture component, then it's a valid entity
- Parameters
-
entity | The entity to check |
- Returns
- A boolean value.
Implements ECS::System.
◆ setClock()
void ECS::GraphicSystem::setClock |
( |
std::shared_ptr< Clock > |
clock | ) |
|
This function sets the clock for the GraphicSystem
- Parameters
-
clock | The clock that will be used to calculate the delta time. |
◆ setSfml()
void ECS::GraphicSystem::setSfml |
( |
std::shared_ptr< InitSfml > |
sfml | ) |
|
It sets the sfml pointer to the one passed in
- Parameters
-
sfml | The InitSfml class that is used to initialize the SFML library. |
◆ update()
void ECS::GraphicSystem::update |
( |
| ) |
|
|
virtual |
It takes all the entities that have a graphic component, and draws them on the screen
Implements ECS::System.
The documentation for this class was generated from the following files: