Jawbone_gump Class Reference

#include <Jawbone_gump.h>

Inheritance diagram for Jawbone_gump:

Inheritance graph
[legend]
Collaboration diagram for Jawbone_gump:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 Jawbone_gump (Jawbone_object *cont, int initx, int inity)
 ~Jawbone_gump ()
virtual Game_objectfind_object (int mx, int my)
virtual int add (Game_object *obj, int mx=-1, int my=-1, int sx=-1, int sy=-1, bool dont_check=false, bool combine=false)
virtual void paint ()

Private Member Functions

void set_to_spot (Game_object *obj, int sx, int sy)
void paint_tooth (int index)
bool on_tooth (int sx, int sy, int index)

Private Attributes

Jawbone_objectjawbone

Detailed Description

Definition at line 29 of file Jawbone_gump.h.


Constructor & Destructor Documentation

Jawbone_gump::Jawbone_gump ( Jawbone_object cont,
int  initx,
int  inity 
)

Definition at line 38 of file Jawbone_gump.cc.

References Gump::set_object_area().

Here is the call graph for this function:

Jawbone_gump::~Jawbone_gump (  )  [inline]

Definition at line 33 of file Jawbone_gump.h.


Member Function Documentation

Game_object * Jawbone_gump::find_object ( int  mx,
int  my 
) [virtual]

Reimplemented from Gump.

Definition at line 84 of file Jawbone_gump.cc.

References Jawbone_object::find_teeth(), jawbone, on_tooth(), set_to_spot(), Jawbone_object::teeth, Gump::x, and Gump::y.

Here is the call graph for this function:

int Jawbone_gump::add ( Game_object obj,
int  mx = -1,
int  my = -1,
int  sx = -1,
int  sy = -1,
bool  dont_check = false,
bool  combine = false 
) [virtual]

Reimplemented from Gump.

Definition at line 48 of file Jawbone_gump.cc.

References Jawbone_object::add(), jawbone, and Exult_server::obj.

Here is the call graph for this function:

void Jawbone_gump::paint (  )  [virtual]

Reimplemented from Gump.

Definition at line 55 of file Jawbone_gump.cc.

References Gump::check_button, Jawbone_object::find_teeth(), jawbone, Gump_button::paint(), ShapeID::paint_shape(), paint_tooth(), Jawbone_object::teeth, Gump::x, and Gump::y.

Here is the call graph for this function:

void Jawbone_gump::set_to_spot ( Game_object obj,
int  sx,
int  sy 
) [private]

Definition at line 128 of file Jawbone_gump.cc.

References Shape_frame::get_height(), Shape_frame::get_width(), Shape_frame::get_xleft(), Shape_frame::get_yabove(), Exult_server::obj, and ShapeID::shape.

Referenced by find_object().

Here is the call graph for this function:

void Jawbone_gump::paint_tooth ( int  index  )  [private]

Definition at line 74 of file Jawbone_gump.cc.

References game, Game::get_shape(), SF_GUMPS_VGA, ShapeID::shape, toothx, toothy, Gump::x, and Gump::y.

Referenced by paint().

Here is the call graph for this function:

bool Jawbone_gump::on_tooth ( int  sx,
int  sy,
int  index 
) [private]

Definition at line 111 of file Jawbone_gump.cc.

References game, Game::get_shape(), Game_window::get_shape_rect(), Game_singletons::gwin, Rectangle::has_point(), SF_GUMPS_VGA, ShapeID::shape, toothx, and toothy.

Referenced by find_object().

Here is the call graph for this function:


Member Data Documentation

Jawbone_object* Jawbone_gump::jawbone [private]

Definition at line 52 of file Jawbone_gump.h.

Referenced by add(), find_object(), and paint().


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