Paperdoll_gump Class Reference

#include <Paperdoll_gump.h>

Inheritance diagram for Paperdoll_gump:

Inheritance graph
[legend]
Collaboration diagram for Paperdoll_gump:

Collaboration graph
[legend]
List of all members.

Public Types

enum  Object_type {
  OT_Normal = 0, OT_Single = 1, OT_Double = 2, OT_Staff = 3,
  OT_Bow = 4, OT_Crossbow = 5, OT_Shield = 6, OT_Helm = 7,
  OT_Musket = 8
}

Public Member Functions

 Paperdoll_gump (Container_game_object *cont, int initx, int inity, int shnum)
 ~Paperdoll_gump ()
virtual Gump_buttonon_button (int mx, int my)
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 ()
void paint_object (const Rectangle &box, Paperdoll_npc *info, int spot, int sx, int sy, int frame=0, int itemtype=-1, int checkspot=-1, int checktype=-1)
void paint_object_arms (const Rectangle &box, Paperdoll_npc *info, int spot, int sx, int sy, int start=0, int itemtype=-1)
void paint_body (const Rectangle &box, Paperdoll_npc *info)
void paint_belt (const Rectangle &box, Paperdoll_npc *info)
void paint_head (const Rectangle &box, Paperdoll_npc *info)
void paint_arms (const Rectangle &box, Paperdoll_npc *info)
Object_type get_arm_type (void)
Game_objectcheck_object (int mx, int my, Paperdoll_npc *info, int spot, int sx, int sy, int frame=0, int itemtype=-1, int checkspot=-1, int checktype=-1)
Game_objectcheck_object_arms (int mx, int my, Paperdoll_npc *info, int spot, int sx, int sy, int start=0, int itemtype=-1)
bool check_body (int mx, int my, Paperdoll_npc *info)
bool check_belt (int mx, int my, Paperdoll_npc *info)
bool check_head (int mx, int my, Paperdoll_npc *info)
bool check_arms (int mx, int my, Paperdoll_npc *info)
bool check_shape (int px, int py, int shape, int frame, ShapeFile file)
virtual Container_game_objectfind_actor (int mx, int my)

Static Public Member Functions

static bool IsObjectAllowed (int shape, int frame, int spot)
static int GetFaceShape (int shape, int frame, int spot)
static bool IsNPCFemale (int shape)
static Paperdoll_npcGetCharacterInfoSafe (int shape)
static Paperdoll_npcGetCharacterInfo (int shape)
static Paperdoll_itemGetItemInfo (int shape, int frame=-1, int spot=-1)

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
Cstats_buttoncstats_button
Halo_buttonhalo_button
Combat_mode_buttoncmode_button

Static Protected Attributes

static Paperdoll_npc Characters []
static Paperdoll_item Items []
static Paperdoll_npc Characters_BG []
static Paperdoll_item Items_BG []
static short coords [36]
static short coords_blue [36]
static short shapes_blue [36]
static short coords_hot [36]
static short diskx
static short disky
static short heartx
static short hearty
static short combatx
static short combaty
static short cstatx
static short cstaty
static short halox
static short haloy
static short cmodex
static short cmodey
static short bodyx
static short bodyy
static short headx
static short heady
static short beltfx
static short beltfy
static short neckfx
static short neckfy
static short beltmx
static short beltmy
static short neckmx
static short neckmy
static short legsx
static short legsy
static short feetx
static short feety
static short handsx
static short handsy
static short lhandx
static short lhandy
static short rhandx
static short rhandy
static short ahandx
static short ahandy
static short ammox
static short ammoy
static short backfx
static short backfy
static short backmx
static short backmy
static short back2fx
static short back2fy
static short back2mx
static short back2my
static short shieldfx
static short shieldfy
static short shieldmx
static short shieldmy

Private Member Functions

 UNREPLICATABLE_CLASS (Paperdoll_gump)

Classes

struct  Paperdoll_item
struct  Paperdoll_npc

Detailed Description

Definition at line 35 of file Paperdoll_gump.h.


Member Enumeration Documentation

enum Paperdoll_gump::Object_type

Enumerator:
OT_Normal 
OT_Single 
OT_Double 
OT_Staff 
OT_Bow 
OT_Crossbow 
OT_Shield 
OT_Helm 
OT_Musket 

Definition at line 38 of file Paperdoll_gump.h.


Constructor & Destructor Documentation

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

Definition at line 188 of file Paperdoll_gump.cc.

References BLACK_GATE, Game::get_game_type(), Actor::get_npc_num(), and Exult_server::obj.

Here is the call graph for this function:

Paperdoll_gump::~Paperdoll_gump (  ) 

Definition at line 250 of file Paperdoll_gump.cc.


Member Function Documentation

Paperdoll_gump::UNREPLICATABLE_CLASS ( Paperdoll_gump   )  [private]

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

Definition at line 153 of file Paperdoll_gump.h.

References coords.

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

Definition at line 154 of file Paperdoll_gump.h.

References coords.

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

Definition at line 146 of file Paperdoll_gump.cc.

References Actor::back2h_spot, Actor::belt, BLACK_GATE, GAME_BG, Game::get_game_type(), and Actor::shield_spot.

Here is the call graph for this function:

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

Definition at line 327 of file Paperdoll_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:

static bool Paperdoll_gump::IsObjectAllowed ( int  shape,
int  frame,
int  spot 
) [inline, static]

Definition at line 168 of file Paperdoll_gump.h.

References GetItemInfo().

Referenced by Actor::fits_in_spot(), and Actor::get_prefered_slots().

Here is the call graph for this function:

static int Paperdoll_gump::GetFaceShape ( int  shape,
int  frame,
int  spot 
) [inline, static]

Definition at line 171 of file Paperdoll_gump.h.

References GetItemInfo().

Here is the call graph for this function:

static bool Paperdoll_gump::IsNPCFemale ( int  shape  )  [inline, static]

Definition at line 174 of file Paperdoll_gump.h.

References GetCharacterInfo(), GetCharacterInfoSafe(), and Paperdoll_gump::Paperdoll_npc::is_female.

Referenced by Actor::inventory_shapenum().

Here is the call graph for this function:

Paperdoll_gump::Paperdoll_npc * Paperdoll_gump::GetCharacterInfoSafe ( int  shape  )  [static]

Definition at line 1319 of file Paperdoll_gump_info.cc.

References BLACK_GATE, Characters, Characters_BG, Game::get_game_type(), and GetCharacterInfo().

Referenced by Face_button::Face_button(), IsNPCFemale(), and Face_button::update_widget().

Here is the call graph for this function:

Paperdoll_gump::Paperdoll_npc * Paperdoll_gump::GetCharacterInfo ( int  shape  )  [static]

Definition at line 1298 of file Paperdoll_gump_info.cc.

References BLACK_GATE, Characters, Characters_BG, and Game::get_game_type().

Referenced by Face_button::Face_button(), GetCharacterInfoSafe(), IsNPCFemale(), and Face_button::update_widget().

Here is the call graph for this function:

Paperdoll_gump::Paperdoll_item * Paperdoll_gump::GetItemInfo ( int  shape,
int  frame = -1,
int  spot = -1 
) [static]

Definition at line 1329 of file Paperdoll_gump_info.cc.

References BLACK_GATE, Game::get_game_type(), Items, and Items_BG.

Referenced by get_arm_type(), GetFaceShape(), and IsObjectAllowed().

Here is the call graph for this function:

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

Reimplemented from Gump.

Definition at line 268 of file Paperdoll_gump.cc.

References Gump::on_button().

Here is the call graph for this function:

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

Reimplemented from Gump.

Definition at line 729 of file Paperdoll_gump.cc.

References Actor::ammo, Actor::back, Actor::back2h_spot, Actor::belt, BLACK_GATE, Actor::cloak_spot, Actor::ears_spot, Actor::feet, Game::get_game_type(), Actor::get_sexed_coloured_shape(), Actor::get_shape_real(), Actor::hands2_spot, Actor::head, Exult_server::info, Actor::legs, Actor::lfinger, Actor::lhand, Actor::neck, Exult_server::obj, Actor::rfinger, Actor::rhand, Actor::shield_spot, Rectangle::shift(), Actor::special_spot, Actor::torso, Actor::ucont_spot, Rectangle::x, and Rectangle::y.

Here is the call graph for this function:

int Paperdoll_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 297 of file Paperdoll_gump.cc.

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

void Paperdoll_gump::paint (  )  [virtual]

Reimplemented from Gump.

Definition at line 353 of file Paperdoll_gump.cc.

References Actor::ammo, Actor::back, Actor::back2h_spot, Actor::belt, BLACK_GATE, Actor::cloak_spot, Actor::ears_spot, Actor::feet, Actor::find_readied(), Game::get_game_type(), Actor::get_sexed_coloured_shape(), Actor::get_shape_real(), Actor::hands2_spot, Actor::head, Exult_server::info, Actor::legs, Actor::lfinger, Actor::lhand, Actor::neck, Exult_server::obj, Actor::rfinger, Actor::rhand, Actor::shield_spot, Rectangle::shift(), snprintf, Actor::special_spot, Actor::torso, Actor::ucont_spot, Rectangle::x, and Rectangle::y.

Here is the call graph for this function:

void Paperdoll_gump::paint_object ( const Rectangle box,
Paperdoll_npc info,
int  spot,
int  sx,
int  sy,
int  frame = 0,
int  itemtype = -1,
int  checkspot = -1,
int  checktype = -1 
)

Definition at line 523 of file Paperdoll_gump.cc.

References BLACK_GATE, cheat, Paperdoll_gump::Paperdoll_item::file, Paperdoll_gump::Paperdoll_item::frame, Paperdoll_gump::Paperdoll_item::frame2, Paperdoll_gump::Paperdoll_item::frame3, Paperdoll_gump::Paperdoll_item::frame4, Paperdoll_gump::Paperdoll_item::gender, ShapeID::get_framenum(), Game::get_game_type(), ShapeID::get_shapenum(), HIT_PIXEL, Exult_server::info, Cheat::is_selected(), Exult_server::obj, s, SF_BG_SIGUMP_FLX, SF_GUMPS_VGA, Paperdoll_gump::Paperdoll_item::shape, Paperdoll_gump::Paperdoll_item::type, Rectangle::x, and Rectangle::y.

Here is the call graph for this function:

void Paperdoll_gump::paint_object_arms ( const Rectangle box,
Paperdoll_npc info,
int  spot,
int  sx,
int  sy,
int  start = 0,
int  itemtype = -1 
)

Definition at line 596 of file Paperdoll_gump.cc.

References Exult_server::info.

void Paperdoll_gump::paint_body ( const Rectangle box,
Paperdoll_npc info 
)

Definition at line 625 of file Paperdoll_gump.cc.

References Exult_server::info, s, SF_PAPERDOL_VGA, Rectangle::x, and Rectangle::y.

void Paperdoll_gump::paint_belt ( const Rectangle box,
Paperdoll_npc info 
)

Definition at line 638 of file Paperdoll_gump.cc.

References Exult_server::info, s, SF_PAPERDOL_VGA, Rectangle::x, and Rectangle::y.

void Paperdoll_gump::paint_head ( const Rectangle box,
Paperdoll_npc info 
)

Definition at line 652 of file Paperdoll_gump.cc.

References Actor::head, Exult_server::info, Exult_server::obj, s, Paperdoll_gump::Paperdoll_item::type, Rectangle::x, and Rectangle::y.

void Paperdoll_gump::paint_arms ( const Rectangle box,
Paperdoll_npc info 
)

Definition at line 675 of file Paperdoll_gump.cc.

References Exult_server::info, Exult_server::obj, Actor::rhand, s, SF_PAPERDOL_VGA, Rectangle::x, and Rectangle::y.

Paperdoll_gump::Object_type Paperdoll_gump::get_arm_type ( void   ) 

Definition at line 709 of file Paperdoll_gump.cc.

References Gump::container, Container_game_object::get_readied(), GetItemInfo(), Actor::lhand, Exult_server::obj, OT_Normal, and Paperdoll_gump::Paperdoll_item::type.

Here is the call graph for this function:

Game_object * Paperdoll_gump::check_object ( int  mx,
int  my,
Paperdoll_npc info,
int  spot,
int  sx,
int  sy,
int  frame = 0,
int  itemtype = -1,
int  checkspot = -1,
int  checktype = -1 
)

Definition at line 919 of file Paperdoll_gump.cc.

References Paperdoll_gump::Paperdoll_item::file, Paperdoll_gump::Paperdoll_item::frame, Paperdoll_gump::Paperdoll_item::frame2, Paperdoll_gump::Paperdoll_item::frame3, Paperdoll_gump::Paperdoll_item::frame4, Paperdoll_gump::Paperdoll_item::gender, ShapeID::get_framenum(), Shape_frame::get_height(), ShapeID::get_shapenum(), Shape_frame::get_width(), Shape_frame::get_xleft(), Shape_frame::get_yabove(), Exult_server::info, Exult_server::obj, Paperdoll_gump::Paperdoll_item::shape, and Paperdoll_gump::Paperdoll_item::type.

Here is the call graph for this function:

Game_object * Paperdoll_gump::check_object_arms ( int  mx,
int  my,
Paperdoll_npc info,
int  spot,
int  sx,
int  sy,
int  start = 0,
int  itemtype = -1 
)

Definition at line 992 of file Paperdoll_gump.cc.

References Exult_server::info.

bool Paperdoll_gump::check_body ( int  mx,
int  my,
Paperdoll_npc info 
)

Definition at line 1019 of file Paperdoll_gump.cc.

References Exult_server::info, and SF_PAPERDOL_VGA.

bool Paperdoll_gump::check_belt ( int  mx,
int  my,
Paperdoll_npc info 
)

Definition at line 1031 of file Paperdoll_gump.cc.

References Exult_server::info, and SF_PAPERDOL_VGA.

bool Paperdoll_gump::check_head ( int  mx,
int  my,
Paperdoll_npc info 
)

Definition at line 1046 of file Paperdoll_gump.cc.

References Actor::head, Exult_server::info, Exult_server::obj, and Paperdoll_gump::Paperdoll_item::type.

bool Paperdoll_gump::check_arms ( int  mx,
int  my,
Paperdoll_npc info 
)

Definition at line 1068 of file Paperdoll_gump.cc.

References Exult_server::info, Exult_server::obj, Actor::rhand, and SF_PAPERDOL_VGA.

bool Paperdoll_gump::check_shape ( int  px,
int  py,
int  shape,
int  frame,
ShapeFile  file 
)

Definition at line 1096 of file Paperdoll_gump.cc.

References ShapeID::get_shape(), Game_window::get_shape_rect(), gwin, Rectangle::has_point(), and s.

Here is the call graph for this function:

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

Reimplemented from Gump.

Definition at line 1119 of file Paperdoll_gump.cc.

References Gump::container.


Member Data Documentation

Paperdoll_gump::Paperdoll_npc Paperdoll_gump::Characters [static, protected]

Definition at line 99 of file Paperdoll_gump.h.

Referenced by GetCharacterInfo(), and GetCharacterInfoSafe().

Paperdoll_gump::Paperdoll_item Paperdoll_gump::Items [static, protected]

Definition at line 100 of file Paperdoll_gump.h.

Referenced by GetItemInfo().

Paperdoll_gump::Paperdoll_npc Paperdoll_gump::Characters_BG [static, protected]

Definition at line 103 of file Paperdoll_gump.h.

Referenced by GetCharacterInfo(), and GetCharacterInfoSafe().

Paperdoll_gump::Paperdoll_item Paperdoll_gump::Items_BG [static, protected]

Definition at line 104 of file Paperdoll_gump.h.

Referenced by GetItemInfo().

short Paperdoll_gump::coords [static, protected]

Definition at line 106 of file Paperdoll_gump.h.

Referenced by spotx(), and spoty().

short Paperdoll_gump::coords_blue [static, protected]

Definition at line 107 of file Paperdoll_gump.h.

short Paperdoll_gump::shapes_blue [static, protected]

Definition at line 108 of file Paperdoll_gump.h.

short Paperdoll_gump::coords_hot [static, protected]

Definition at line 109 of file Paperdoll_gump.h.

short Paperdoll_gump::diskx [static, protected]

Definition at line 111 of file Paperdoll_gump.h.

short Paperdoll_gump::disky [static, protected]

Definition at line 111 of file Paperdoll_gump.h.

short Paperdoll_gump::heartx [static, protected]

Definition at line 112 of file Paperdoll_gump.h.

short Paperdoll_gump::hearty [static, protected]

Definition at line 112 of file Paperdoll_gump.h.

short Paperdoll_gump::combatx [static, protected]

Definition at line 113 of file Paperdoll_gump.h.

short Paperdoll_gump::combaty [static, protected]

Definition at line 113 of file Paperdoll_gump.h.

short Paperdoll_gump::cstatx [static, protected]

Definition at line 114 of file Paperdoll_gump.h.

short Paperdoll_gump::cstaty [static, protected]

Definition at line 114 of file Paperdoll_gump.h.

short Paperdoll_gump::halox [static, protected]

Definition at line 115 of file Paperdoll_gump.h.

short Paperdoll_gump::haloy [static, protected]

Definition at line 115 of file Paperdoll_gump.h.

short Paperdoll_gump::cmodex [static, protected]

Definition at line 116 of file Paperdoll_gump.h.

short Paperdoll_gump::cmodey [static, protected]

Definition at line 116 of file Paperdoll_gump.h.

short Paperdoll_gump::bodyx [static, protected]

Definition at line 118 of file Paperdoll_gump.h.

short Paperdoll_gump::bodyy [static, protected]

Definition at line 118 of file Paperdoll_gump.h.

short Paperdoll_gump::headx [static, protected]

Definition at line 119 of file Paperdoll_gump.h.

short Paperdoll_gump::heady [static, protected]

Definition at line 119 of file Paperdoll_gump.h.

short Paperdoll_gump::beltfx [static, protected]

Definition at line 120 of file Paperdoll_gump.h.

short Paperdoll_gump::beltfy [static, protected]

Definition at line 120 of file Paperdoll_gump.h.

short Paperdoll_gump::neckfx [static, protected]

Definition at line 121 of file Paperdoll_gump.h.

short Paperdoll_gump::neckfy [static, protected]

Definition at line 121 of file Paperdoll_gump.h.

short Paperdoll_gump::beltmx [static, protected]

Definition at line 122 of file Paperdoll_gump.h.

short Paperdoll_gump::beltmy [static, protected]

Definition at line 122 of file Paperdoll_gump.h.

short Paperdoll_gump::neckmx [static, protected]

Definition at line 123 of file Paperdoll_gump.h.

short Paperdoll_gump::neckmy [static, protected]

Definition at line 123 of file Paperdoll_gump.h.

short Paperdoll_gump::legsx [static, protected]

Definition at line 124 of file Paperdoll_gump.h.

short Paperdoll_gump::legsy [static, protected]

Definition at line 124 of file Paperdoll_gump.h.

short Paperdoll_gump::feetx [static, protected]

Definition at line 125 of file Paperdoll_gump.h.

short Paperdoll_gump::feety [static, protected]

Definition at line 125 of file Paperdoll_gump.h.

short Paperdoll_gump::handsx [static, protected]

Definition at line 126 of file Paperdoll_gump.h.

short Paperdoll_gump::handsy [static, protected]

Definition at line 126 of file Paperdoll_gump.h.

short Paperdoll_gump::lhandx [static, protected]

Definition at line 127 of file Paperdoll_gump.h.

short Paperdoll_gump::lhandy [static, protected]

Definition at line 127 of file Paperdoll_gump.h.

short Paperdoll_gump::rhandx [static, protected]

Definition at line 128 of file Paperdoll_gump.h.

short Paperdoll_gump::rhandy [static, protected]

Definition at line 128 of file Paperdoll_gump.h.

short Paperdoll_gump::ahandx [static, protected]

Definition at line 129 of file Paperdoll_gump.h.

short Paperdoll_gump::ahandy [static, protected]

Definition at line 129 of file Paperdoll_gump.h.

short Paperdoll_gump::ammox [static, protected]

Definition at line 130 of file Paperdoll_gump.h.

short Paperdoll_gump::ammoy [static, protected]

Definition at line 130 of file Paperdoll_gump.h.

short Paperdoll_gump::backfx [static, protected]

Definition at line 132 of file Paperdoll_gump.h.

short Paperdoll_gump::backfy [static, protected]

Definition at line 132 of file Paperdoll_gump.h.

short Paperdoll_gump::backmx [static, protected]

Definition at line 133 of file Paperdoll_gump.h.

short Paperdoll_gump::backmy [static, protected]

Definition at line 133 of file Paperdoll_gump.h.

short Paperdoll_gump::back2fx [static, protected]

Definition at line 134 of file Paperdoll_gump.h.

short Paperdoll_gump::back2fy [static, protected]

Definition at line 134 of file Paperdoll_gump.h.

short Paperdoll_gump::back2mx [static, protected]

Definition at line 135 of file Paperdoll_gump.h.

short Paperdoll_gump::back2my [static, protected]

Definition at line 135 of file Paperdoll_gump.h.

short Paperdoll_gump::shieldfx [static, protected]

Definition at line 136 of file Paperdoll_gump.h.

short Paperdoll_gump::shieldfy [static, protected]

Definition at line 136 of file Paperdoll_gump.h.

short Paperdoll_gump::shieldmx [static, protected]

Definition at line 137 of file Paperdoll_gump.h.

short Paperdoll_gump::shieldmy [static, protected]

Definition at line 137 of file Paperdoll_gump.h.

Heart_button* Paperdoll_gump::heart_button [protected]

Definition at line 142 of file Paperdoll_gump.h.

Disk_button* Paperdoll_gump::disk_button [protected]

Definition at line 143 of file Paperdoll_gump.h.

Combat_button* Paperdoll_gump::combat_button [protected]

Definition at line 144 of file Paperdoll_gump.h.

Cstats_button* Paperdoll_gump::cstats_button [protected]

Definition at line 145 of file Paperdoll_gump.h.

Halo_button* Paperdoll_gump::halo_button [protected]

Definition at line 146 of file Paperdoll_gump.h.

Combat_mode_button* Paperdoll_gump::cmode_button [protected]

Definition at line 147 of file Paperdoll_gump.h.


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