The Game Engine  1
Actor Class Reference

Set of Animations that defines an Actor or stand alone moving entity with various animatoins. More...

#include <Actor.h>

Public Member Functions

 Actor (Animation *anim)
 
 Actor (std::vector< Animation * > anims)
 
 Actor (std::vector< string > anims)
 

Public Attributes

unsigned int Frame
 The frame #. More...
 
unsigned int CurrentAnimation
 Index to the current loaded animation. More...
 
std::vector< Animation * > Animations
 Vector of pointers to all of this sprite's Animations. More...
 

Detailed Description

Set of Animations that defines an Actor or stand alone moving entity with various animatoins.

This class is tasked with the following:

  • keeping track of the current Animation's state

Definition at line 15 of file Actor.h.

Constructor & Destructor Documentation

Actor::Actor ( Animation anim)

Definition at line 4 of file Actor.cpp.

Actor::Actor ( std::vector< Animation * >  anims)

Definition at line 11 of file Actor.cpp.

Actor::Actor ( std::vector< string >  anims)

Definition at line 18 of file Actor.cpp.

+ Here is the call graph for this function:

Member Data Documentation

std::vector<Animation*> Actor::Animations

Vector of pointers to all of this sprite's Animations.

Definition at line 27 of file Actor.h.

unsigned int Actor::CurrentAnimation

Index to the current loaded animation.

Definition at line 25 of file Actor.h.

unsigned int Actor::Frame

The frame #.

Definition at line 23 of file Actor.h.


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