Atlas
A Convenient Entity Component System
|
Base class for all Systems. More...
#include <System.h>
Public Types | |
typedef std::unique_ptr< System > | Ptr |
Standard pointer when referring to a System. More... | |
Public Member Functions | |
System (World &world) | |
Creates a new System. More... | |
virtual | ~System () |
virtual void | update (float dt)=0 |
Proccesses all Entities relevant to this System. More... | |
virtual void | checkInterest (Entity &Entity) |
Checks to see if the System is interested in an Entity based on which Components it owns. More... | |
std::bitset< BITSIZE > | getSystemBits () const |
Retrieves the system type bits that are assigned to this System. More... | |
void | toString () |
Prints Entities in the System, as well as this System's TypeBits and SystemBits. More... | |
![]() | |
NonCopyable ()=default | |
Default Constructor. More... | |
virtual | ~NonCopyable () |
Protected Member Functions | |
template<typename T > | |
void | addComponentType () |
Adds a Component type for the System to process. More... | |
std::bitset< BITSIZE > | getTypeBits () const |
Retrieves the Component bit types that the System will process. More... | |
const std::vector< Entity::ID > & | getEntities () const |
Retrieves the Entity::IDs of interested Entities. More... | |
World & | getWorld () const |
Retrieves the World object for this System. More... | |
Friends | |
class | SystemManager |
Base class for all Systems.
typedef std::unique_ptr<System> Atlas::System::Ptr |
Standard pointer when referring to a System.
Atlas::System::System | ( | World & | world | ) |
|
virtual |
|
inlineprotected |
|
virtual |
|
protected |
Retrieves the Entity::IDs of interested Entities.
std::bitset<BITSIZE> Atlas::System::getSystemBits | ( | ) | const |
|
protected |
void Atlas::System::toString | ( | ) |
|
pure virtual |
Proccesses all Entities relevant to this System.
dt | - update time |
|
friend |