sgAction Class Reference

#include <sgAction.h>

List of all members.

Public Member Functions

virtual void onInit (sgEntity *e)
virtual void onDraw (float timestep)
virtual void onDestroy ()

Public Attributes

sgEntityent

Detailed Description

Action class. An inherited class from this one can be a part of an entity for comfortable control of it.


Member Function Documentation

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.

Parameters:
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.

Parameters:
e pointer to the entity this action is part of.

Member Data Documentation

Entity. The pointer to an entity, usually set to the one this action is part of.


The documentation for this class was generated from the following files:
Generated on Thu Jun 3 13:31:03 2010 for iSDGE by  doxygen 1.6.3