#include <sgAction.h>
Public Member Functions | |
| virtual void | onInit (sgEntity *e) |
| virtual void | onDraw (float timestep) |
| virtual void | onDestroy () |
Public Attributes | |
| sgEntity * | ent |
Action class. An inherited class from this one can be a part of an entity for comfortable control of it.
| void sgAction::onDestroy | ( | ) | [virtual] |
On destroy. This function is called directly before the entity is destroyed.
| void sgAction::onDraw | ( | float | timestep | ) | [virtual] |
On draw. This function is called every frame just before rendering anything. It is called in the order of the entities in their list.
| timestep | the time in seconds since the previous frame was rendered. |
| void sgAction::onInit | ( | sgEntity * | e | ) | [virtual] |
On init. This function is called directly after the creation of the entity. It should set the actions pointer to the entity.
| e | pointer to the entity this action is part of. |
Entity. The pointer to an entity, usually set to the one this action is part of.
1.6.3