#include <System.h>
Public Member Functions |
| | System () |
| | Constructor.
|
| virtual | ~System () |
| | Destructor.
|
| virtual void | Update (float fElaspedTime)=0 |
| | Updates the system and it will update the entities.
|
| virtual void | AsyncUpdate ()=0 |
| | Updates the system in asynchronism mode.
|
| virtual void | NotifySystem (Entity *pEn)=0 |
| virtual bool | OnMessage (Message *msg)=0 |
| | Receive a message to process.
|
| | Task () |
| | Constructor.
|
| virtual | ~Task () |
| | Destructor.
|
Detailed Description
Definition at line 14 of file System.h.
Constructor & Destructor Documentation
| kge::en::System::System |
( |
| ) |
|
| virtual kge::en::System::~System |
( |
| ) |
|
|
virtual |
Member Function Documentation
| void kge::en::System::AddEntity |
( |
Entity * |
pEn | ) |
|
|
protected |
Adds an entity to system.
| virtual void kge::en::System::AsyncUpdate |
( |
| ) |
|
|
pure virtual |
TaskManager call this function on a different thread and this function calls AsyncUpdate update from this function.
Implements kge::core::Task.
| virtual void kge::en::System::NotifySystem |
( |
Entity * |
pEn | ) |
|
|
pure virtual |
When a new entity created or new component attached to entity you must call it on systems to check the entity.
Implemented in kge::en::SystemMesh.
| virtual bool kge::en::System::OnMessage |
( |
Message * |
msg | ) |
|
|
pure virtual |
| virtual void kge::en::System::Update |
( |
float |
fElaspedTime | ) |
|
|
pure virtual |
Member Data Documentation
| bool kge::en::System::m_bAsyncUpdate |
|
protected |
Should this system update trough a thread default = false.
Definition at line 44 of file System.h.
| std::vector<Entity*> kge::en::System::m_vEntities |
|
protected |
The documentation for this class was generated from the following file: