NWengine 0.9
Loading...
Searching...
No Matches
GameComponent Class Reference

Base class for game components. More...

#include <GameObject.h>

Inheritance diagram for GameComponent:
Serialized Animator AudioEmitter AudioListener Camera Collider ParticleSystem Script Sprite Text Transform

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 voidGetGameObject ()
 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.
 

Detailed Description

Base class for game components.

Member Function Documentation

◆ GetGameObject()

virtual void * GameComponent::GetGameObject ( )
inlinevirtual

Get the GameObject associated with the game component.

Returns
The GameObject associated with the game component.

Reimplemented in Animator, Sprite, Text, and Transform.

◆ GetType()

static std::string GameComponent::GetType ( )
inlinestatic

Get the type of the game component.

Returns
The type of the game component.

◆ SetGameObject()

virtual void GameComponent::SetGameObject ( void * go)
inlinevirtual

Set the GameObject associated with the game component.

Parameters
goThe GameObject to set.

Reimplemented in Animator, Sprite, Text, and Transform.

◆ Start()

virtual void GameComponent::Start ( )
inlinevirtual

Start the game component.

Reimplemented in Collider, and Script.

◆ Update()

virtual void GameComponent::Update ( )
inlinevirtual

Update the game component.

Reimplemented in Animator, ParticleSystem, Camera, AudioListener, Script, Sprite, and Text.


The documentation for this class was generated from the following file: