Wraith
0.1.5
Basic 3D game engine in C++
|
For updating the GameObject entity every frame. NOTE: GameObject Entity must be registered in order to process GameObject::update callback. More...
Functions | |
void | Updatable::submitUpdateRegistration () |
Submit update registration to current scene. More... | |
void | Updatable::submitUpdateDeregistration () |
Submit update deregistration to current scene. More... | |
bool | Updatable::isRegisteredForUpdate () const |
Query if this object is registered for update. More... | |
virtual void | Updatable::update () |
Update callback for this object. More... | |
For updating the GameObject entity every frame. NOTE: GameObject Entity must be registered in order to process GameObject::update callback.
The Update callback is called by the current Scene every frame. Here is an example of Tank moving foward at a constant rate.
|
protected |
Query if this object is registered for update.
|
protected |
Submit update deregistration to current scene.
.
|
protected |
Submit update registration to current scene.
|
privatevirtual |
Update callback for this object.
To be implemented by user in object derived from GameObject (NOT directly derived from Updatable). Called ONLY by current active scene.