Jawbone_object Class Reference

#include <jawbone.h>

Inheritance diagram for Jawbone_object:

Inheritance graph
[legend]
Collaboration diagram for Jawbone_object:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 Jawbone_object (int shapenum, int framenum, unsigned int tilex, unsigned int tiley, unsigned int lft, char res=0)
 Jawbone_object ()
virtual bool add (Game_object *obj, bool dont_check=false, bool combine=false)
virtual void remove (Game_object *obj)
virtual Game_objectattacked (Actor *attacker, int weapon_shape=0, int ammo_shape=0)

Private Member Functions

void find_teeth ()
void update_frame ()

Private Attributes

Game_objectteeth [19]
int toothcount

Friends

class Jawbone_gump

Detailed Description

Definition at line 24 of file jawbone.h.


Constructor & Destructor Documentation

Jawbone_object::Jawbone_object ( int  shapenum,
int  framenum,
unsigned int  tilex,
unsigned int  tiley,
unsigned int  lft,
char  res = 0 
) [inline]

Definition at line 28 of file jawbone.h.

Jawbone_object::Jawbone_object (  )  [inline]

Definition at line 33 of file jawbone.h.


Member Function Documentation

bool Jawbone_object::add ( Game_object obj,
bool  dont_check = false,
bool  combine = false 
) [virtual]

Reimplemented from Container_game_object.

Definition at line 27 of file jawbone.cc.

References Container_game_object::add(), find_teeth(), Exult_server::obj, teeth, toothcount, and update_frame().

Referenced by Jawbone_gump::add().

Here is the call graph for this function:

void Jawbone_object::remove ( Game_object obj  )  [virtual]

Reimplemented from Container_game_object.

Definition at line 51 of file jawbone.cc.

References find_teeth(), Exult_server::obj, Container_game_object::remove(), and update_frame().

Here is the call graph for this function:

virtual Game_object* Jawbone_object::attacked ( Actor attacker,
int  weapon_shape = 0,
int  ammo_shape = 0 
) [inline, virtual]

Reimplemented from Game_object.

Definition at line 44 of file jawbone.h.

void Jawbone_object::find_teeth (  )  [private]

Definition at line 59 of file jawbone.cc.

References Game_object::get_next(), Container_game_object::get_objects(), T_Object_list< T >::is_empty(), Game_object::next, Exult_server::obj, Container_game_object::objects, teeth, and toothcount.

Referenced by add(), Jawbone_gump::find_object(), Jawbone_gump::paint(), and remove().

Here is the call graph for this function:

void Jawbone_object::update_frame (  )  [private]

Definition at line 86 of file jawbone.cc.

References ShapeID::set_frame(), and toothcount.

Referenced by add(), and remove().

Here is the call graph for this function:


Friends And Related Function Documentation

friend class Jawbone_gump [friend]

Definition at line 25 of file jawbone.h.


Member Data Documentation

Game_object* Jawbone_object::teeth[19] [private]

Definition at line 49 of file jawbone.h.

Referenced by add(), Jawbone_gump::find_object(), find_teeth(), and Jawbone_gump::paint().

int Jawbone_object::toothcount [private]

Definition at line 50 of file jawbone.h.

Referenced by add(), find_teeth(), and update_frame().


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