#include <TextSystem.hpp>
◆ TextSystem()
ECS::TextSystem::TextSystem |
( |
const std::shared_ptr< ComponentManager > & |
componentsManager, |
|
|
const std::shared_ptr< EntityManager > & |
entityManager |
|
) |
| |
It's a constructor for the TextSystem class
- Parameters
-
componentsManager | The ComponentManager that the system will use to get components. |
entityManager | The entity manager that the system will use to get entities. |
◆ ~TextSystem()
ECS::TextSystem::~TextSystem |
( |
| ) |
|
|
default |
◆ checkIsValidEntity()
bool ECS::TextSystem::checkIsValidEntity |
( |
Entity |
entity | ) |
|
|
virtual |
If the entity has a position and text component, then it's a valid entity
- Parameters
-
entity | The entity to check |
- Returns
- A boolean value.
Implements ECS::System.
◆ setSfml()
void ECS::TextSystem::setSfml |
( |
std::shared_ptr< InitSfml > |
sfml | ) |
|
This function sets the sfml pointer to the sfml pointer passed in as a parameter
- Parameters
-
sfml | This is the InitSfml class that we created in the previous chapter. |
◆ update()
void ECS::TextSystem::update |
( |
| ) |
|
|
virtual |
It draws the text on the screen
Implements ECS::System.
The documentation for this class was generated from the following files: