ANIM_OBJ
Definition
struct ANIM_OBJ
{
int _i_curr_frame;
int _i_total_frames;
int _i_direction;
int _i_frame_delay;
int _i_anim_delay;
int _i_def_frame;
bool _b_playing;
bool _b_repeat;
bool _b_paused;
animation _v_animation;
string _str_timer;
};
Properties
| _i_curr_frame | the current animation frame |
| _i_total_frames | the total number of animation frames |
| _i_direction | the current play direction of the animation |
| _i_frame_delay | the time (in ms) between animation frames |
| _i_anim_delay | the time (in ms) before an animation repeats |
| _i_def_frame | the frame to display when animation is stopped (if -1, animation retains current frame) |
| _b_playing | flag whether the animation is playing or not |
| _b_repeat | flag whether the animation should repeat |
| _b_paused | flag whether the animation is paused (default frame is ignored) |
| _v_animation | vector of animation frames |
| _str_timer | handle to timer assigned for delays |