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

Public Types

enum class  FlashState { FLASH_OUT , EASE_IN , FLASH_IN , EASE_OUT }
 
- Public Types inherited from Animation
enum  animType { ANIMTYPE_NONE = 0 , ANIMTYPE_PLAY_N_TIMES = 1 , ANIMTYPE_LOOPED = 2 , ANIMTYPE_BACK_FORTH = 3 }
 

Public Member Functions

 FlashAnimation (int ix, int iy, size_t f, float s, const std::string _type, const std::vector< float > &flashTimes, Color flashC, int _reps=0)
 
 FlashAnimation (int ix, int iy, size_t f, float s, const animType _type, const std::vector< float > &flashTimes, Color flashC, int _reps=0)
 
void advanceFrame (float deltaTime)
 
std::vector< float > getSpeedsAsVector () const
 
- 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

float interpolation_a = 0.0f
 
std::map< FlashState, float > speeds
 
FlashState currentSpeedIndex = FlashState::FLASH_OUT
 
Color flashColor = Color(255,255,255,255)
 
- 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
 

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