#include <System.h>
|
void | addComponent (const std::string &name) |
| Let you add, inside a System, which component should be gathered from the Environment.
|
|
void | addComponents (std::vector< std::string > names) |
| Version with a list of desired components.
|
|
void | addRejected (const std::string &name) |
| Let you add a components to the rejected components, if the entity possess at list one of this components it will not be added.
|
|
void | addRejects (std::vector< std::string > names) |
| Version with a list of rejected components.
|
|
void | addTag (const std::string &tagName) |
| Let you add, inside a System, which tag should be gathered from the Environment.
|
|
void | addTags (std::vector< std::string > names) |
| Version with a list of tags.
|
|
◆ System()
System::System |
( |
std::shared_ptr< Environment > | environment, |
|
|
bool | autoUpdate = true ) |
◆ addComponent()
void System::addComponent |
( |
const std::string & | name | ) |
|
|
protected |
Let you add, inside a System, which component should be gathered from the Environment.
- Parameters
-
◆ addComponents()
void System::addComponents |
( |
std::vector< std::string > | names | ) |
|
|
protected |
Version with a list of desired components.
- Parameters
-
◆ addRejected()
void System::addRejected |
( |
const std::string & | name | ) |
|
|
protected |
Let you add a components to the rejected components, if the entity possess at list one of this components it will not be added.
- Parameters
-
◆ addRejects()
void System::addRejects |
( |
std::vector< std::string > | names | ) |
|
|
protected |
Version with a list of rejected components.
- Parameters
-
◆ addTag()
void System::addTag |
( |
const std::string & | tagName | ) |
|
|
protected |
Let you add, inside a System, which tag should be gathered from the Environment.
- Parameters
-
◆ addTags()
void System::addTags |
( |
std::vector< std::string > | names | ) |
|
|
protected |
Version with a list of tags.
- Parameters
-
◆ changeEnvironment()
void System::changeEnvironment |
( |
std::shared_ptr< Environment > | environment | ) |
|
◆ getChange()
bool System::getChange |
( |
| ) |
|
Return the value of change and, if change is true flipped it back to false.
◆ getID()
const size_t & System::getID |
( |
| ) |
|
◆ newEntity()
void System::newEntity |
( |
int | entity | ) |
|
◆ run()
virtual void System::run |
( |
| ) |
|
|
pure virtual |
This is an abstract method which will contains the logic of the System and can be call by the user to process on this System's entities and components.
◆ desiredComponents
std::vector<std::string> System::desiredComponents |
|
protected |
Represent the components this System want.
◆ desiredTags
std::vector<std::string> System::desiredTags |
|
protected |
Represent the tags this System want.
◆ entities
std::unordered_set<int> System::entities |
|
protected |
The entities of this system.
◆ environment
◆ mtx
Mutex for the entities' vector.
◆ rejectedComponents
std::vector<std::string> System::rejectedComponents |
|
protected |
Represent the components this System absolutely doesn't want.
The documentation for this class was generated from the following file:
- C:/Users/thoma/OneDrive/Programmation/C++/TailorMade/TailorMade/headers/System.h