#include <animate.h>
Inheritance diagram for Frame_animator:
Public Member Functions | |
Frame_animator (Game_object *o) | |
virtual int | get_framenum () |
virtual void | handle_event (unsigned long time, long udata) |
Private Types | |
enum | { FA_LOOPING = 0, FA_SUNDIAL = 1, FA_ENERGY_FIELD = 2 } |
Private Member Functions | |
void | Initialize () |
Private Attributes | |
unsigned char | first_frame |
unsigned char | frames |
unsigned int | created |
unsigned int | delay |
unsigned short | last_shape |
unsigned short | last_frame |
enum Frame_animator:: { ... } | type |
Definition at line 63 of file animate.h.
anonymous enum [private] |
Frame_animator::Frame_animator | ( | Game_object * | o | ) |
Definition at line 302 of file animate.cc.
void Frame_animator::Initialize | ( | ) | [private] |
Definition at line 312 of file animate.cc.
References created, delay, FA_ENERGY_FIELD, FA_LOOPING, FA_SUNDIAL, first_frame, frames, ShapeID::get_framenum(), Game::get_game_type(), ShapeID::get_num_frames(), ShapeID::get_shapenum(), Game::get_ticks(), last_frame, last_shape, Animator::obj, SERPENT_ISLE, and type.
Referenced by get_framenum().
Here is the call graph for this function:
int Frame_animator::get_framenum | ( | ) | [virtual] |
Reimplemented from Animator.
Definition at line 441 of file animate.cc.
References Game_window::add_dirty(), created, delay, FA_ENERGY_FIELD, FA_LOOPING, FA_SUNDIAL, first_frame, frames, Game_singletons::gclock, ShapeID::get_framenum(), Game_clock::get_hour(), ShapeID::get_shapenum(), Game::get_ticks(), Game_singletons::gwin, Initialize(), last_frame, last_shape, Animator::obj, and type.
Here is the call graph for this function:
void Frame_animator::handle_event | ( | unsigned long | time, | |
long | udata | |||
) | [virtual] |
Implements Time_sensitive.
Definition at line 480 of file animate.cc.
References Time_queue::add(), Game_window::add_dirty(), Game::get_ticks(), Game_window::get_tqueue(), gwin, Exult_server::obj, and Object_sfx::play().
Here is the call graph for this function:
unsigned char Frame_animator::first_frame [private] |
unsigned char Frame_animator::frames [private] |
unsigned int Frame_animator::created [private] |
unsigned int Frame_animator::delay [private] |
unsigned short Frame_animator::last_shape [private] |
unsigned short Frame_animator::last_frame [private] |
enum { ... } Frame_animator::type [private] |
Referenced by get_framenum(), and Initialize().