Animator Class Reference

#include <animate.h>

Inheritance diagram for Animator:

Inheritance graph
[legend]
Collaboration diagram for Animator:

Collaboration graph
[legend]
List of all members.

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 Animatorcreate (Game_object *ob)

Protected Member Functions

void start_animation ()

Protected Attributes

Game_objectobj
unsigned char deltax
unsigned char deltay
bool animating
int sfxnum

Detailed Description

Definition at line 33 of file animate.h.


Constructor & Destructor Documentation

Animator::Animator ( Game_object o,
int  snum = -1 
) [inline]

Definition at line 43 of file animate.h.

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:


Member Function Documentation

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:


Member Data Documentation

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]

Definition at line 37 of file animate.h.

Referenced by get_deltax().

unsigned char Animator::deltay [protected]

Definition at line 37 of file animate.h.

Referenced by get_deltay().

bool Animator::animating [protected]

Definition at line 39 of file animate.h.

Referenced by want_animation().

int Animator::sfxnum [protected]

Definition at line 40 of file animate.h.


The documentation for this class was generated from the following files:
Generated on Mon Jul 9 14:46:54 2007 for ExultEngine by  doxygen 1.5.1