R-TYPE
Public Member Functions | Protected Attributes | List of all members
ECS::System Class Referenceabstract

#include <System.hpp>

Inheritance diagram for ECS::System:
ECS::BonusSystem ECS::CollisionSystem ECS::EnemyShootSystem ECS::EventsSystem ECS::GraphicSystem ECS::MoveSystem ECS::PatternSystem ECS::TextSystem

Public Member Functions

 System (const std::shared_ptr< ComponentManager > &componentManager, const std::shared_ptr< EntityManager > &entityManager)
 
 ~System ()=default
 
virtual void update ()=0
 
virtual bool checkIsValidEntity (Entity entity)=0
 

Protected Attributes

std::shared_ptr< ComponentManager_componentManager
 
std::shared_ptr< EntityManager_entityManager
 

Constructor & Destructor Documentation

◆ System()

ECS::System::System ( const std::shared_ptr< ComponentManager > &  componentManager,
const std::shared_ptr< EntityManager > &  entityManager 
)

The constructor for the System class.

Parameters
componentManagerA pointer to the ComponentManager that the System will use to access Components.
entityManagerThe entity manager that the system will use to get entities.

◆ ~System()

ECS::System::~System ( )
default

Member Function Documentation

◆ checkIsValidEntity()

virtual bool ECS::System::checkIsValidEntity ( Entity  entity)
pure virtual

◆ update()

virtual void ECS::System::update ( )
pure virtual

Member Data Documentation

◆ _componentManager

std::shared_ptr<ComponentManager> ECS::System::_componentManager
protected

◆ _entityManager

std::shared_ptr<EntityManager> ECS::System::_entityManager
protected

The documentation for this class was generated from the following files: