Shape_info Class Reference

#include <shapeinf.h>

Collaboration diagram for Shape_info:

Collaboration graph
[legend]
List of all members.

Public Types

enum  Shape_class {
  unusable = 0, quality = 2, quantity = 3, has_hp = 4,
  quality_flags = 5, container = 6, hatchable = 7, spellbook = 8,
  barge = 9, virtue_stone = 11, monster = 12, human = 13,
  building = 14
}

Public Member Functions

 Shape_info ()
virtual ~Shape_info ()
int get_weight ()
int get_volume ()
void set_weight_volume (int w, int v)
int get_armor ()
Weapon_infoget_weapon_info ()
Weapon_infoset_weapon_info (bool tf)
Ammo_infoget_ammo_info ()
Ammo_infoset_ammo_info (bool tf)
Armor_infoget_armor_info ()
Armor_infoset_armor_info (bool tf)
Monster_infoget_monster_info ()
Monster_infoset_monster_info (bool tf)
int get_3d_xtiles (unsigned int framenum=0)
int get_3d_ytiles (unsigned int framenum=0)
int get_3d_height ()
void set_3d (int xt, int yt, int zt)
unsigned char get_tfa (int i)
int has_sfx ()
void set_sfx (bool tf)
int has_strange_movement ()
void set_strange_movement (bool tf)
int is_animated ()
void set_animated (bool tf)
int is_solid ()
void set_solid (bool tf)
int is_water ()
void set_water (bool tf)
int is_poisonous ()
int is_field ()
void set_field (bool tf)
int is_door ()
void set_door (bool tf)
int is_barge_part ()
void set_barge_part (bool tf)
int is_transparent ()
void set_transparent (bool tf)
int is_light_source ()
void set_light_source (bool tf)
int has_translucency ()
void set_translucency (bool tf)
int is_xobstacle ()
int is_yobstacle ()
void set_obstacle (bool x, bool y)
Shape_class get_shape_class ()
void set_shape_class (Shape_class c)
bool is_npc ()
bool has_quantity ()
bool has_quality_flags ()
bool has_quality ()
bool occludes () const
void set_occludes (bool tf)
unsigned char get_ready_type ()
void set_ready_type (unsigned char t)
void get_weapon_offset (int frame, unsigned char &x, unsigned char &y)
void set_weapon_offset (int frame, unsigned char x, unsigned char y)

Private Member Functions

void set_tfa_data ()
void set_tfa (int i, int bit, bool tf)
 Shape_info (const Shape_info &other)
const Shape_infooperator= (const Shape_info &other)

Private Attributes

unsigned char tfa [3]
unsigned char dims [3]
unsigned char weight
unsigned char volume
unsigned char shpdims [2]
unsigned char ready_type
bool occludes_flag
unsigned char * weapon_offsets
Armor_infoarmor
Weapon_infoweapon
Ammo_infoammo
Monster_infomonstinf

Friends

class Shapes_vga_file

Detailed Description

Definition at line 215 of file shapeinf.h.


Member Enumeration Documentation

enum Shape_info::Shape_class

Enumerator:
unusable 
quality 
quantity 
has_hp 
quality_flags 
container 
hatchable 
spellbook 
barge 
virtue_stone 
monster 
human 
building 

Definition at line 344 of file shapeinf.h.


Constructor & Destructor Documentation

Shape_info::Shape_info ( const Shape_info other  )  [private]

Shape_info::Shape_info (  )  [inline]

Definition at line 247 of file shapeinf.h.

References dims, shpdims, and tfa.

Shape_info::~Shape_info (  )  [virtual]

Definition at line 147 of file shapeinf.cc.

References ammo, armor, monstinf, weapon, and weapon_offsets.


Member Function Documentation

void Shape_info::set_tfa_data (  )  [inline, private]

Definition at line 232 of file shapeinf.h.

References dims, and tfa.

void Shape_info::set_tfa ( int  i,
int  bit,
bool  tf 
) [inline, private]

Definition at line 239 of file shapeinf.h.

References tfa.

Referenced by set_animated(), set_barge_part(), set_door(), set_field(), set_light_source(), set_sfx(), set_solid(), set_strange_movement(), set_translucency(), set_transparent(), and set_water().

const Shape_info& Shape_info::operator= ( const Shape_info other  )  [private]

int Shape_info::get_weight (  )  [inline]

Definition at line 255 of file shapeinf.h.

References weight.

Referenced by Game_object::get_weight().

int Shape_info::get_volume (  )  [inline]

Definition at line 257 of file shapeinf.h.

References volume.

void Shape_info::set_weight_volume ( int  w,
int  v 
) [inline]

Definition at line 259 of file shapeinf.h.

References volume, and weight.

int Shape_info::get_armor (  )  [inline]

Definition at line 261 of file shapeinf.h.

References armor, and Armor_info::prot.

Weapon_info* Shape_info::get_weapon_info (  )  [inline]

Definition at line 263 of file shapeinf.h.

References weapon.

Referenced by Game_object::attack_object(), Actor::figure_hit_points(), Actor::get_weapon(), Projectile_effect::handle_event(), and Combat_schedule::start_strike().

Weapon_info * Shape_info::set_weapon_info ( bool  tf  ) 

Definition at line 163 of file shapeinf.cc.

References weapon.

Ammo_info* Shape_info::get_ammo_info (  )  [inline]

Definition at line 266 of file shapeinf.h.

References ammo.

Referenced by Actor::figure_hit_points(), In_ammo_family(), and Combat_schedule::set_weapon().

Ammo_info * Shape_info::set_ammo_info ( bool  tf  ) 

Definition at line 177 of file shapeinf.cc.

References ammo.

Armor_info* Shape_info::get_armor_info (  )  [inline]

Definition at line 269 of file shapeinf.h.

References armor.

Armor_info * Shape_info::set_armor_info ( bool  tf  ) 

Definition at line 191 of file shapeinf.cc.

References armor.

Monster_info* Shape_info::get_monster_info (  )  [inline]

Definition at line 272 of file shapeinf.h.

References monstinf.

Referenced by Egg_object::activate(), Monster_actor::create(), Actor::get_tile_info(), and Usecode_internal::UI_summon().

Monster_info * Shape_info::set_monster_info ( bool  tf  ) 

Definition at line 205 of file shapeinf.cc.

References monstinf.

int Shape_info::get_3d_xtiles ( unsigned int  framenum = 0  )  [inline]

Definition at line 277 of file shapeinf.h.

References dims.

Referenced by Ordering_info::init(), Monster_pathfinder_client::Monster_pathfinder_client(), and Game_object::swap_positions().

int Shape_info::get_3d_ytiles ( unsigned int  framenum = 0  )  [inline]

Definition at line 279 of file shapeinf.h.

References dims.

Referenced by Ordering_info::init(), Monster_pathfinder_client::Monster_pathfinder_client(), and Game_object::swap_positions().

int Shape_info::get_3d_height (  )  [inline]

Definition at line 281 of file shapeinf.h.

References dims.

Referenced by Map_chunk::add(), Dragging_info::drop_on_map(), Ordering_info::init(), Sit_actor_action::is_occupied(), and Monster_pathfinder_client::Monster_pathfinder_client().

void Shape_info::set_3d ( int  xt,
int  yt,
int  zt 
)

Definition at line 225 of file shapeinf.cc.

unsigned char Shape_info::get_tfa ( int  i  )  [inline]

Definition at line 284 of file shapeinf.h.

References tfa.

int Shape_info::has_sfx (  )  [inline]

Definition at line 286 of file shapeinf.h.

References tfa.

void Shape_info::set_sfx ( bool  tf  )  [inline]

Definition at line 288 of file shapeinf.h.

References set_tfa().

Here is the call graph for this function:

int Shape_info::has_strange_movement (  )  [inline]

Definition at line 290 of file shapeinf.h.

References tfa.

Referenced by Path_walking_actor_action::stop().

void Shape_info::set_strange_movement ( bool  tf  )  [inline]

Definition at line 292 of file shapeinf.h.

References set_tfa().

Here is the call graph for this function:

int Shape_info::is_animated (  )  [inline]

Definition at line 294 of file shapeinf.h.

References tfa.

void Shape_info::set_animated ( bool  tf  )  [inline]

Definition at line 296 of file shapeinf.h.

References set_tfa().

Here is the call graph for this function:

int Shape_info::is_solid (  )  [inline]

Definition at line 298 of file shapeinf.h.

References tfa.

Referenced by Check_terrain().

void Shape_info::set_solid ( bool  tf  )  [inline]

Definition at line 300 of file shapeinf.h.

References set_tfa().

Here is the call graph for this function:

int Shape_info::is_water (  )  [inline]

Definition at line 302 of file shapeinf.h.

References tfa.

Referenced by Check_terrain(), and Actor::get_tile_info().

void Shape_info::set_water ( bool  tf  )  [inline]

Definition at line 304 of file shapeinf.h.

References set_tfa().

Here is the call graph for this function:

int Shape_info::is_poisonous (  )  [inline]

Definition at line 306 of file shapeinf.h.

References tfa.

Referenced by Actor::get_tile_info().

int Shape_info::is_field (  )  [inline]

Definition at line 308 of file shapeinf.h.

References tfa.

void Shape_info::set_field ( bool  tf  )  [inline]

Definition at line 310 of file shapeinf.h.

References set_tfa().

Here is the call graph for this function:

int Shape_info::is_door (  )  [inline]

Definition at line 312 of file shapeinf.h.

References tfa.

void Shape_info::set_door ( bool  tf  )  [inline]

Definition at line 314 of file shapeinf.h.

References set_tfa().

Here is the call graph for this function:

int Shape_info::is_barge_part (  )  [inline]

Definition at line 316 of file shapeinf.h.

References tfa.

void Shape_info::set_barge_part ( bool  tf  )  [inline]

Definition at line 318 of file shapeinf.h.

References set_tfa().

Here is the call graph for this function:

int Shape_info::is_transparent (  )  [inline]

Definition at line 320 of file shapeinf.h.

References tfa.

void Shape_info::set_transparent ( bool  tf  )  [inline]

Definition at line 322 of file shapeinf.h.

References set_tfa().

Here is the call graph for this function:

int Shape_info::is_light_source (  )  [inline]

Definition at line 324 of file shapeinf.h.

References tfa.

Referenced by Map_chunk::add(), Usecode_internal::set_item_shape(), and Map_chunk::setup_dungeon_levels().

void Shape_info::set_light_source ( bool  tf  )  [inline]

Definition at line 326 of file shapeinf.h.

References set_tfa().

Here is the call graph for this function:

int Shape_info::has_translucency (  )  [inline]

Definition at line 328 of file shapeinf.h.

References tfa.

Referenced by ShapeID::cache_shape().

void Shape_info::set_translucency ( bool  tf  )  [inline]

Definition at line 330 of file shapeinf.h.

References set_tfa().

Here is the call graph for this function:

int Shape_info::is_xobstacle (  )  [inline]

Definition at line 332 of file shapeinf.h.

References shpdims.

int Shape_info::is_yobstacle (  )  [inline]

Definition at line 334 of file shapeinf.h.

References shpdims.

void Shape_info::set_obstacle ( bool  x,
bool  y 
) [inline]

Definition at line 336 of file shapeinf.h.

References shpdims.

Shape_class Shape_info::get_shape_class (  )  [inline]

Definition at line 360 of file shapeinf.h.

References tfa.

Referenced by Map_chunk::add(), has_quality(), has_quality_flags(), has_quantity(), and is_npc().

void Shape_info::set_shape_class ( Shape_class  c  )  [inline]

Definition at line 362 of file shapeinf.h.

References tfa.

bool Shape_info::is_npc (  )  [inline]

Definition at line 364 of file shapeinf.h.

References get_shape_class(), human, and monster.

Here is the call graph for this function:

bool Shape_info::has_quantity (  )  [inline]

Definition at line 369 of file shapeinf.h.

References get_shape_class(), and quantity.

Here is the call graph for this function:

bool Shape_info::has_quality_flags (  )  [inline]

Definition at line 371 of file shapeinf.h.

References get_shape_class(), and quality_flags.

Here is the call graph for this function:

bool Shape_info::has_quality (  )  [inline]

Definition at line 373 of file shapeinf.h.

References get_shape_class().

Referenced by Container_game_object::create_quantity().

Here is the call graph for this function:

bool Shape_info::occludes (  )  const [inline]

Definition at line 388 of file shapeinf.h.

References occludes_flag.

Referenced by Game_object::compare().

void Shape_info::set_occludes ( bool  tf  )  [inline]

Definition at line 390 of file shapeinf.h.

References occludes_flag.

unsigned char Shape_info::get_ready_type (  )  [inline]

Definition at line 392 of file shapeinf.h.

References ready_type.

void Shape_info::set_ready_type ( unsigned char  t  )  [inline]

Definition at line 394 of file shapeinf.h.

References ready_type.

void Shape_info::get_weapon_offset ( int  frame,
unsigned char &  x,
unsigned char &  y 
) [inline]

Definition at line 397 of file shapeinf.h.

References weapon_offsets.

Referenced by Actor::figure_weapon_pos().

void Shape_info::set_weapon_offset ( int  frame,
unsigned char  x,
unsigned char  y 
)

Definition at line 244 of file shapeinf.cc.


Friends And Related Function Documentation

friend class Shapes_vga_file [friend]

Definition at line 246 of file shapeinf.h.


Member Data Documentation

unsigned char Shape_info::tfa[3] [private]

Definition at line 217 of file shapeinf.h.

Referenced by get_shape_class(), get_tfa(), has_sfx(), has_strange_movement(), has_translucency(), is_animated(), is_barge_part(), is_door(), is_field(), is_light_source(), is_poisonous(), is_solid(), is_transparent(), is_water(), set_shape_class(), set_tfa(), set_tfa_data(), and Shape_info().

unsigned char Shape_info::dims[3] [private]

Definition at line 220 of file shapeinf.h.

Referenced by get_3d_height(), get_3d_xtiles(), get_3d_ytiles(), set_tfa_data(), and Shape_info().

unsigned char Shape_info::weight [private]

Definition at line 221 of file shapeinf.h.

Referenced by get_weight(), and set_weight_volume().

unsigned char Shape_info::volume [private]

Definition at line 221 of file shapeinf.h.

Referenced by get_volume(), and set_weight_volume().

unsigned char Shape_info::shpdims[2] [private]

Definition at line 222 of file shapeinf.h.

Referenced by is_xobstacle(), is_yobstacle(), set_obstacle(), and Shape_info().

unsigned char Shape_info::ready_type [private]

Definition at line 223 of file shapeinf.h.

Referenced by get_ready_type(), and set_ready_type().

bool Shape_info::occludes_flag [private]

Definition at line 225 of file shapeinf.h.

Referenced by occludes(), and set_occludes().

unsigned char* Shape_info::weapon_offsets [private]

Definition at line 226 of file shapeinf.h.

Referenced by get_weapon_offset(), and ~Shape_info().

Armor_info* Shape_info::armor [private]

Definition at line 228 of file shapeinf.h.

Referenced by get_armor(), get_armor_info(), set_armor_info(), and ~Shape_info().

Weapon_info* Shape_info::weapon [private]

Definition at line 229 of file shapeinf.h.

Referenced by get_weapon_info(), set_weapon_info(), and ~Shape_info().

Ammo_info* Shape_info::ammo [private]

Definition at line 230 of file shapeinf.h.

Referenced by get_ammo_info(), set_ammo_info(), and ~Shape_info().

Monster_info* Shape_info::monstinf [private]

Definition at line 231 of file shapeinf.h.

Referenced by get_monster_info(), set_monster_info(), and ~Shape_info().


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