Actor_gump Class Reference

#include <Actor_gump.h>

Inheritance diagram for Actor_gump:

Inheritance graph
[legend]
Collaboration diagram for Actor_gump:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 Actor_gump (Container_game_object *cont, int initx, int inity, int shnum)
 ~Actor_gump ()
virtual Gump_buttonon_button (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 ()
virtual Container_game_objectfind_actor (int mx, int my)

Protected Member Functions

int find_closest (int mx, int my, int only_empty=0)
void set_to_spot (Game_object *obj, int index)

Static Protected Member Functions

static int spotx (int i)
static int spoty (int i)

Protected Attributes

Heart_buttonheart_button
Disk_buttondisk_button
Combat_buttoncombat_button
Halo_buttonhalo_button
Combat_mode_buttoncmode_button

Static Protected Attributes

static short coords [24]
static short diskx
static short disky
static short heartx
static short hearty
static short combatx
static short combaty
static short halox
static short haloy
static short cmodex
static short cmodey

Private Member Functions

 UNREPLICATABLE_CLASS (Actor_gump)

Detailed Description

Definition at line 33 of file Actor_gump.h.


Constructor & Destructor Documentation

Actor_gump::Actor_gump ( Container_game_object cont,
int  initx,
int  inity,
int  shnum 
)

Definition at line 92 of file Actor_gump.cc.

References Exult_server::npc, and Exult_server::obj.

Actor_gump::~Actor_gump (  ) 

Definition at line 126 of file Actor_gump.cc.


Member Function Documentation

Actor_gump::UNREPLICATABLE_CLASS ( Actor_gump   )  [private]

static int Actor_gump::spotx ( int  i  )  [inline, static, protected]

Definition at line 45 of file Actor_gump.h.

References coords.

static int Actor_gump::spoty ( int  i  )  [inline, static, protected]

Definition at line 46 of file Actor_gump.h.

References coords.

int Actor_gump::find_closest ( int  mx,
int  my,
int  only_empty = 0 
) [protected]

Definition at line 64 of file Actor_gump.cc.

void Actor_gump::set_to_spot ( Game_object obj,
int  index 
) [protected]

Definition at line 221 of file Actor_gump.cc.

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

Here is the call graph for this function:

Gump_button * Actor_gump::on_button ( int  mx,
int  my 
) [virtual]

Reimplemented from Gump.

Definition at line 143 of file Actor_gump.cc.

References Gump::on_button().

Here is the call graph for this function:

int Actor_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 170 of file Actor_gump.cc.

References Ucscript::cont, and Exult_server::obj.

void Actor_gump::paint (  )  [virtual]

Reimplemented from Gump.

Definition at line 255 of file Actor_gump.cc.

References Actor::is_two_fingered(), Actor::is_two_handed(), Exult_server::obj, Gump::paint(), ShapeID::paint_shape(), SF_GUMPS_VGA, snprintf, TWO_FINGER_BROWN_FRAME, TWO_FINGER_BROWN_SHAPE, TWO_HANDED_BROWN_FRAME, and TWO_HANDED_BROWN_SHAPE.

Here is the call graph for this function:

Container_game_object * Actor_gump::find_actor ( int  mx,
int  my 
) [virtual]

Reimplemented from Gump.

Definition at line 300 of file Actor_gump.cc.

References Gump::container.


Member Data Documentation

Heart_button* Actor_gump::heart_button [protected]

Definition at line 38 of file Actor_gump.h.

Disk_button* Actor_gump::disk_button [protected]

Definition at line 39 of file Actor_gump.h.

Combat_button* Actor_gump::combat_button [protected]

Definition at line 40 of file Actor_gump.h.

Halo_button* Actor_gump::halo_button [protected]

Definition at line 41 of file Actor_gump.h.

Combat_mode_button* Actor_gump::cmode_button [protected]

Definition at line 42 of file Actor_gump.h.

short Actor_gump::coords [static, protected]

Definition at line 43 of file Actor_gump.h.

Referenced by spotx(), and spoty().

short Actor_gump::diskx [static, protected]

Definition at line 50 of file Actor_gump.h.

short Actor_gump::disky [static, protected]

Definition at line 50 of file Actor_gump.h.

short Actor_gump::heartx [static, protected]

Definition at line 51 of file Actor_gump.h.

short Actor_gump::hearty [static, protected]

Definition at line 51 of file Actor_gump.h.

short Actor_gump::combatx [static, protected]

Definition at line 52 of file Actor_gump.h.

short Actor_gump::combaty [static, protected]

Definition at line 52 of file Actor_gump.h.

short Actor_gump::halox [static, protected]

Definition at line 53 of file Actor_gump.h.

short Actor_gump::haloy [static, protected]

Definition at line 53 of file Actor_gump.h.

short Actor_gump::cmodex [static, protected]

Definition at line 54 of file Actor_gump.h.

short Actor_gump::cmodey [static, protected]

Definition at line 54 of file Actor_gump.h.


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