R-TYPE
Public Member Functions | List of all members
ECS::TextSystem Class Reference

#include <TextSystem.hpp>

Inheritance diagram for ECS::TextSystem:
ECS::System

Public Member Functions

 TextSystem (const std::shared_ptr< ComponentManager > &componentsManager, const std::shared_ptr< EntityManager > &entityManager)
 
 ~TextSystem ()=default
 
void update ()
 
bool checkIsValidEntity (Entity entity)
 
void setSfml (std::shared_ptr< InitSfml > sfml)
 
- Public Member Functions inherited from ECS::System
 System (const std::shared_ptr< ComponentManager > &componentManager, const std::shared_ptr< EntityManager > &entityManager)
 
 ~System ()=default
 

Additional Inherited Members

- Protected Attributes inherited from ECS::System
std::shared_ptr< ComponentManager_componentManager
 
std::shared_ptr< EntityManager_entityManager
 

Constructor & Destructor Documentation

◆ 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
componentsManagerThe ComponentManager that the system will use to get components.
entityManagerThe entity manager that the system will use to get entities.

◆ ~TextSystem()

ECS::TextSystem::~TextSystem ( )
default

Member Function Documentation

◆ checkIsValidEntity()

bool ECS::TextSystem::checkIsValidEntity ( Entity  entity)
virtual

If the entity has a position and text component, then it's a valid entity

Parameters
entityThe 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
sfmlThis 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: