TazGraph Project v0.1.0
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Public Attributes | List of all members
Animation Struct Reference
Inheritance diagram for Animation:
Inheritance graph
[legend]

Public Types

enum  animType { ANIMTYPE_NONE = 0 , ANIMTYPE_PLAY_N_TIMES = 1 , ANIMTYPE_LOOPED = 2 , ANIMTYPE_BACK_FORTH = 3 }
 

Public Member Functions

 Animation (int ix, int iy, size_t f, float s, const std::string _type, int _reps=0)
 
 Animation (int ix, int iy, size_t f, float s, const animType _type, int _reps=0)
 
void advanceFrame (float deltaTime)
 
void resetFrameIndex ()
 
bool hasFinished ()
 

Public Attributes

int indexX = 0
 
int indexY = 0
 
size_t total_frames = 0
 
float speed = 1.0f
 
animType type = animType::ANIMTYPE_NONE
 
int reps = 0
 
int frame_times_played = 0
 
int cur_frame_index = 0
 
float cur_frame_index_f = 0
 
int times_played = 0
 
int flow_direction = 1
 
bool finished = false
 

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