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

Public Member Functions

 MovingAnimation (int ix, int iy, int f, float s, const std::string _type, int dx, int dy, int _reps=0)
 
 MovingAnimation (int ix, int iy, int f, float s, const animType _type, int dx, int dy, int _reps=0)
 
 MovingAnimation (int ix, int iy, int f, float s, const std::string _type, const std::vector< glm::vec2 > &_positions, const std::vector< int > &_zIndices, const std::vector< int > &_rotations, int _reps=0)
 
 MovingAnimation (int ix, int iy, size_t f, float s, const animType _type, const std::vector< glm::vec2 > &_positions, const std::vector< int > &_zIndices, const std::vector< int > &_rotations, int _reps=0)
 
- Public Member Functions inherited from Animation
 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

std::vector< glm::vec2 > positions
 
std::vector< int > zIndices
 
std::vector< int > rotations
 
- Public Attributes inherited from Animation
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
 

Additional Inherited Members

- Public Types inherited from Animation
enum  animType { ANIMTYPE_NONE = 0 , ANIMTYPE_PLAY_N_TIMES = 1 , ANIMTYPE_LOOPED = 2 , ANIMTYPE_BACK_FORTH = 3 }
 

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