NWengine 0.9
|
Base class for game components. More...
#include <GameObject.h>
Public Member Functions | |
virtual void | Update () |
Update the game component. | |
virtual void | Start () |
Start the game component. | |
virtual void | SetGameObject (void *go) |
Set the GameObject associated with the game component. | |
virtual void * | GetGameObject () |
Get the GameObject associated with the game component. | |
virtual | ~GameComponent () |
Destructor for the game component. | |
Public Member Functions inherited from Serialized | |
Serialized () | |
Default constructor for Serialized class. | |
virtual int | Serialize (std::fstream *data, int offset) |
Serialize the object and write it to the file. | |
virtual int | Deserialize (std::fstream *data, int offset) |
Deserialize the object from the file. | |
Static Public Member Functions | |
static std::string | GetType () |
Get the type of the game component. | |
Base class for game components.
Get the GameObject associated with the game component.
|
inlinestatic |
Get the type of the game component.
Set the GameObject associated with the game component.
go | The GameObject to set. |
Update the game component.
Reimplemented in Animator, ParticleSystem, Camera, AudioListener, Script, Sprite, and Text.