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

Represents an animator component that can be attached to a game object. More...

#include <Components.h>

Inheritance diagram for Animator:
GameComponent Serialized

Public Member Functions

 Animator (GameObject *attachedObj)
 
void Update ()
 Update the game component.
 
void SetGameObject (void *go) override
 Set the GameObject associated with the game component.
 
voidGetGameObject () override
 Get the GameObject associated with the game component.
 
- Public Member Functions inherited from GameComponent
virtual void Start ()
 Start 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 ()
 
- Static Public Member Functions inherited from GameComponent
static std::string GetType ()
 Get the type of the game component.
 

Public Attributes

GameObjectattachedObj = nullptr
 
uint16 currentFrame = 0
 
bool isActive = 1
 
Animation animation
 

Detailed Description

Represents an animator component that can be attached to a game object.

Member Function Documentation

◆ GetGameObject()

void * Animator::GetGameObject ( )
overridevirtual

Get the GameObject associated with the game component.

Returns
The GameObject associated with the game component.

Reimplemented from GameComponent.

◆ SetGameObject()

void Animator::SetGameObject ( void * go)
overridevirtual

Set the GameObject associated with the game component.

Parameters
goThe GameObject to set.

Reimplemented from GameComponent.

◆ Update()

void Animator::Update ( )
virtual

Update the game component.

Reimplemented from GameComponent.


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