Frame_animator Class Reference

#include <animate.h>

Inheritance diagram for Frame_animator:

Inheritance graph
[legend]
Collaboration diagram for Frame_animator:

Collaboration graph
[legend]
List of all members.

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

Detailed Description

Definition at line 63 of file animate.h.


Member Enumeration Documentation

anonymous enum [private]

Enumerator:
FA_LOOPING 
FA_SUNDIAL 
FA_ENERGY_FIELD 

Definition at line 71 of file animate.h.


Constructor & Destructor Documentation

Frame_animator::Frame_animator ( Game_object o  ) 

Definition at line 302 of file animate.cc.


Member Function Documentation

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:


Member Data Documentation

unsigned char Frame_animator::first_frame [private]

Definition at line 65 of file animate.h.

Referenced by get_framenum(), and Initialize().

unsigned char Frame_animator::frames [private]

Definition at line 66 of file animate.h.

Referenced by get_framenum(), and Initialize().

unsigned int Frame_animator::created [private]

Definition at line 67 of file animate.h.

Referenced by get_framenum(), and Initialize().

unsigned int Frame_animator::delay [private]

Definition at line 68 of file animate.h.

Referenced by get_framenum(), and Initialize().

unsigned short Frame_animator::last_shape [private]

Definition at line 69 of file animate.h.

Referenced by get_framenum(), and Initialize().

unsigned short Frame_animator::last_frame [private]

Definition at line 70 of file animate.h.

Referenced by get_framenum(), and Initialize().

enum { ... } Frame_animator::type [private]

Referenced by get_framenum(), and Initialize().


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