#include <animate.h>
Inheritance diagram for Animator:
Public Member Functions | |
Animator (Game_object *o, int snum=-1) | |
~Animator () | |
void | want_animation () |
int | get_deltax () |
int | get_deltay () |
virtual int | get_framenum () |
Static Public Member Functions | |
static Animator * | create (Game_object *ob) |
Protected Member Functions | |
void | start_animation () |
Protected Attributes | |
Game_object * | obj |
unsigned char | deltax |
unsigned char | deltay |
bool | animating |
int | sfxnum |
Definition at line 33 of file animate.h.
Animator::Animator | ( | Game_object * | o, | |
int | snum = -1 | |||
) | [inline] |
Animator::~Animator | ( | ) |
Definition at line 267 of file animate.cc.
References Game_window::get_tqueue(), gwin, and Time_queue::remove().
Here is the call graph for this function:
void Animator::start_animation | ( | ) | [protected] |
Definition at line 279 of file animate.cc.
References Time_queue::add(), Game::get_ticks(), Game_window::get_tqueue(), gwin, and Time_queue::remove().
Referenced by want_animation().
Here is the call graph for this function:
Animator * Animator::create | ( | Game_object * | ob | ) | [static] |
Definition at line 246 of file animate.cc.
References ShapeID::get_info(), ShapeID::get_num_frames(), ShapeID::get_shapenum(), and Exult_server::info.
Referenced by Animated_ifix_object::Animated_ifix_object(), Animated_ireg_object::Animated_ireg_object(), Animated_object::Animated_object(), and Monster_actor::Monster_actor().
Here is the call graph for this function:
void Animator::want_animation | ( | ) | [inline] |
Definition at line 48 of file animate.h.
References animating, and start_animation().
Here is the call graph for this function:
int Animator::get_deltax | ( | ) | [inline] |
Definition at line 53 of file animate.h.
References deltax.
Referenced by Animated_ifix_object::get_original_tile_coord(), Animated_ireg_object::get_original_tile_coord(), and Animated_object::get_original_tile_coord().
int Animator::get_deltay | ( | ) | [inline] |
Definition at line 55 of file animate.h.
References deltay.
Referenced by Animated_ifix_object::get_original_tile_coord(), Animated_ireg_object::get_original_tile_coord(), and Animated_object::get_original_tile_coord().
int Animator::get_framenum | ( | ) | [virtual] |
Reimplemented in Frame_animator.
Definition at line 292 of file animate.cc.
References ShapeID::get_framenum(), and obj.
Referenced by Animated_ifix_object::write_ifix(), and Animated_ireg_object::write_ireg().
Here is the call graph for this function:
Game_object* Animator::obj [protected] |
Definition at line 36 of file animate.h.
Referenced by Frame_animator::get_framenum(), get_framenum(), and Frame_animator::Initialize().
unsigned char Animator::deltax [protected] |
unsigned char Animator::deltay [protected] |
bool Animator::animating [protected] |
int Animator::sfxnum [protected] |