Object_sfx Class Reference

Inheritance diagram for Object_sfx:

Inheritance graph
[legend]
Collaboration diagram for Object_sfx:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 Object_sfx (int snum, Game_object *o)
int get_sfxnum ()
int get_distance ()
void set_obj (Game_object *o)
void stop (Game_object *o)

Static Public Member Functions

static int get_shape_sfx (int shapenum)
static void play (Game_object *o, int snum, bool stop=false)

Private Attributes

int sfxnum
int sfx
Game_objectobj
int distance
int dir

Detailed Description

Definition at line 54 of file animate.cc.


Constructor & Destructor Documentation

Object_sfx::Object_sfx ( int  snum,
Game_object o 
) [inline]

Definition at line 63 of file animate.cc.

References set_obj().

Here is the call graph for this function:


Member Function Documentation

int Object_sfx::get_sfxnum (  )  [inline]

Definition at line 67 of file animate.cc.

References sfxnum.

int Object_sfx::get_distance (  )  [inline]

Definition at line 69 of file animate.cc.

References distance.

void Object_sfx::set_obj ( Game_object o  ) 

Definition at line 91 of file animate.cc.

References Tile_coord::distance(), Get_direction16(), Game_window::get_main_actor(), Audio::get_ptr(), Game_object::get_tile(), gwin, Exult_server::obj, Audio::play_sound_effect(), Ucscript::repeat, Ucscript::sfx, Tile_coord::tx, and Tile_coord::ty.

Referenced by Object_sfx().

Here is the call graph for this function:

void Object_sfx::stop ( Game_object o  )  [inline]

Definition at line 72 of file animate.cc.

References obj, and sfx.

int Object_sfx::get_shape_sfx ( int  shapenum  )  [static]

Definition at line 149 of file animate.cc.

References U7file::filename, GAME_BG, Audio::game_sfx(), Audio::get_ptr(), Audio::get_sfx_file(), s, Ucscript::sfx, and to_uppercase().

Here is the call graph for this function:

void Object_sfx::play ( Game_object o,
int  snum,
bool  stop = false 
) [static]

Definition at line 216 of file animate.cc.

References Ucscript::sfx.

Referenced by Sfx_animator::handle_event(), and Frame_animator::handle_event().


Member Data Documentation

int Object_sfx::sfxnum [private]

Definition at line 56 of file animate.cc.

Referenced by get_sfxnum().

int Object_sfx::sfx [private]

Definition at line 57 of file animate.cc.

Referenced by stop().

Game_object* Object_sfx::obj [private]

Definition at line 58 of file animate.cc.

Referenced by stop().

int Object_sfx::distance [private]

Definition at line 59 of file animate.cc.

Referenced by get_distance().

int Object_sfx::dir [private]

Definition at line 60 of file animate.cc.


The documentation for this class was generated from the following file:
Generated on Mon Jul 9 15:00:46 2007 for ExultEngine by  doxygen 1.5.1