#include <shapeinf.h>
Collaboration diagram for Shape_info:
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_info * | get_weapon_info () |
Weapon_info * | set_weapon_info (bool tf) |
Ammo_info * | get_ammo_info () |
Ammo_info * | set_ammo_info (bool tf) |
Armor_info * | get_armor_info () |
Armor_info * | set_armor_info (bool tf) |
Monster_info * | get_monster_info () |
Monster_info * | set_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_info & | operator= (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_info * | armor |
Weapon_info * | weapon |
Ammo_info * | ammo |
Monster_info * | monstinf |
Friends | |
class | Shapes_vga_file |
Definition at line 215 of file shapeinf.h.
unusable | |
quality | |
quantity | |
has_hp | |
quality_flags | |
container | |
hatchable | |
spellbook | |
barge | |
virtue_stone | |
monster | |
human | |
building |
Definition at line 344 of file shapeinf.h.
Shape_info::Shape_info | ( | const Shape_info & | other | ) | [private] |
Shape_info::Shape_info | ( | ) | [inline] |
Shape_info::~Shape_info | ( | ) | [virtual] |
Definition at line 147 of file shapeinf.cc.
References ammo, armor, monstinf, weapon, and weapon_offsets.
void Shape_info::set_tfa_data | ( | ) | [inline, private] |
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] |
void Shape_info::set_weight_volume | ( | int | w, | |
int | v | |||
) | [inline] |
int Shape_info::get_armor | ( | ) | [inline] |
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 | ) |
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 | ) |
Armor_info* Shape_info::get_armor_info | ( | ) | [inline] |
Armor_info * Shape_info::set_armor_info | ( | bool | tf | ) |
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 | ) |
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] |
int Shape_info::has_sfx | ( | ) | [inline] |
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] |
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] |
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] |
int Shape_info::is_field | ( | ) | [inline] |
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] |
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] |
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] |
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] |
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] |
int Shape_info::is_yobstacle | ( | ) | [inline] |
void Shape_info::set_obstacle | ( | bool | x, | |
bool | y | |||
) | [inline] |
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] |
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] |
unsigned char Shape_info::get_ready_type | ( | ) | [inline] |
void Shape_info::set_ready_type | ( | unsigned char | t | ) | [inline] |
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.
friend class Shapes_vga_file [friend] |
Definition at line 246 of file shapeinf.h.
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] |
unsigned char Shape_info::volume [private] |
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] |
bool Shape_info::occludes_flag [private] |
unsigned char* Shape_info::weapon_offsets [private] |
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().