ShapeID Class Reference

#include <shapeid.h>

Inheritance diagram for ShapeID:

Inheritance graph
[legend]
Collaboration diagram for ShapeID:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 ShapeID (unsigned char l, unsigned char h)
 ShapeID (unsigned char *&data)
 ShapeID ()
virtual ~ShapeID ()
int is_invalid () const
int is_eol () const
int get_shapenum () const
int get_framenum () const
ShapeFile get_shapefile () const
Shape_frameget_shape ()
void set_translucent (int trans)
bool is_translucent ()
void set_shape (int shnum, int frnum)
 ShapeID (int shnum, int frnum, ShapeFile shfile=SF_SHAPES_VGA)
void set_shape (int shnum)
void set_frame (int frnum)
void set_file (ShapeFile shfile)
void paint_shape (int xoff, int yoff, bool force_trans=false)
void paint_invisible (int xoff, int yoff)
void paint_outline (int xoff, int yoff, Pixel_colors pix)
int get_num_frames () const
Shape_infoget_info () const

Static Public Member Functions

static Shape_infoget_info (int shnum)

Private Member Functions

Shape_framecache_shape ()

Private Attributes

short shapenum
signed char framenum
char has_trans
ShapeFile shapefile
Shape_frameshape

Detailed Description

Definition at line 147 of file shapeid.h.


Constructor & Destructor Documentation

ShapeID::ShapeID ( unsigned char  l,
unsigned char  h 
) [inline]

Definition at line 159 of file shapeid.h.

ShapeID::ShapeID ( unsigned char *&  data  )  [inline]

Definition at line 164 of file shapeid.h.

References framenum, and shapenum.

ShapeID::ShapeID (  )  [inline]

Definition at line 173 of file shapeid.h.

Referenced by Map_chunk::get_flat(), and Gump_text::Gump_text().

virtual ShapeID::~ShapeID (  )  [inline, virtual]

Definition at line 176 of file shapeid.h.

ShapeID::ShapeID ( int  shnum,
int  frnum,
ShapeFile  shfile = SF_SHAPES_VGA 
) [inline]

Definition at line 203 of file shapeid.h.


Member Function Documentation

Shape_frame * ShapeID::cache_shape (  )  [private]

Definition at line 285 of file shapeid.cc.

References Shape_manager::files, framenum, Shapes_vga_file::get_info(), get_shape(), Vga_file::get_shape(), has_trans, Shape_info::has_translucency(), SF_OTHER, SF_SPRITES_VGA, shape, shapefile, shapenum, Shape_manager::shapes, and Game_singletons::sman.

Referenced by get_shape(), and is_translucent().

Here is the call graph for this function:

int ShapeID::is_invalid (  )  const [inline]

Definition at line 179 of file shapeid.h.

References shapenum.

Referenced by Check_terrain(), Barge_object::gather(), is_eol(), and Usecode_internal::UI_is_water().

int ShapeID::is_eol (  )  const [inline]

Definition at line 181 of file shapeid.h.

References is_invalid().

Here is the call graph for this function:

int ShapeID::get_shapenum (  )  const [inline]

Definition at line 184 of file shapeid.h.

References shapenum.

Referenced by Mirror_object::activate(), Actor::add_dirty(), Gump_manager::add_gump(), Paperdoll_gump::check_object(), Animator::create(), Usecode_internal::create_script(), Explosion_effect::Explosion_effect(), Face_button::Face_button(), Actor::figure_warmth(), Actor::figure_weapon_pos(), Gump_manager::find_gump(), Map_chunk::find_in_area(), Frame_animator::get_framenum(), Game_object::get_obj_hp(), Actor::get_sexed_coloured_shape(), Actor_pathfinder_client::get_step_cost(), Actor::get_tile_info(), Actor::get_usecode(), Actor::get_weapon(), Frame_animator::Initialize(), Game_map::insert_terrain(), Sew_schedule::now_what(), Waiter_schedule::now_what(), CheatScreen::NPCDisplay(), Paperdoll_gump::paint_object(), Actor::paint_weapon(), Actor::ready_ammo(), Ready_duel_weapon(), Mirror_object::set_area(), Usecode_internal::set_item_frame(), Game_object::set_obj_hp(), Actor::set_polymorph(), Actor::set_polymorph_default(), Map_chunk::setup_dungeon_levels(), Combat_schedule::start_strike(), Swap_weapons(), Game_window::teleport_party(), Usecode_internal::UI_get_item_shape(), Face_button::update_widget(), Use_ammo(), and Container_game_object::write_ireg().

int ShapeID::get_framenum (  )  const [inline]

Definition at line 186 of file shapeid.h.

References framenum.

Referenced by Mirror_object::activate(), Gump_ToggleTextButton::activate(), Gump_ToggleButton::activate(), Enabled_button::activate(), Paperdoll_gump::check_object(), Actor::figure_warmth(), Map_chunk::find_in_area(), Game_object::get_dir_framenum(), Frame_animator::get_framenum(), Animator::get_framenum(), Actor_pathfinder_client::get_step_cost(), Actor::get_tile_info(), Gump_ToggleTextButton::getselection(), Gump_ToggleButton::getselection(), Enabled_button::getselection(), Face_pos_actor_action::handle_event(), Path_walking_actor_action::handle_event(), Sit_actor_action::init(), Frame_animator::Initialize(), Mirror_object::is_active(), Sit_actor_action::is_occupied(), Bake_schedule::now_what(), Preach_schedule::now_what(), CheatScreen::NPCDisplay(), Paperdoll_gump::paint_object(), Actor::set_actor_shape(), Mirror_object::set_area(), Usecode_internal::set_item_frame(), Map_chunk::setup_dungeon_levels(), Sit_actor_action::Sit_actor_action(), Game_window::teleport_party(), Usecode_internal::UI_get_item_frame(), Slime_actor::update_frames(), Face_button::update_widget(), Animated_ifix_object::write_ifix(), and Animated_ireg_object::write_ireg().

ShapeFile ShapeID::get_shapefile (  )  const [inline]

Definition at line 188 of file shapeid.h.

References shapefile.

Referenced by Usecode_internal::set_item_frame(), and Face_button::update_widget().

Shape_frame* ShapeID::get_shape (  )  [inline]

Definition at line 190 of file shapeid.h.

References cache_shape(), and shape.

Referenced by Gump_manager::add_gump(), cache_shape(), Paperdoll_gump::check_shape(), Gump_widget::get_rect(), Gump::get_rect(), Chunk_terrain::get_shape(), Gump::has_point(), CheatScreen::NPCDisplay(), Paint_map::paint(), Spellbook_gump::paint(), Portrait_button::paint(), Paint_centered::Paint_centered(), paint_invisible(), paint_outline(), paint_shape(), Chunk_terrain::paint_tile(), Actor::paint_weapon(), Chunk_terrain::render_all(), Gump::set_pos(), Map_chunk::set_terrain(), Conversation::show_avatar_choices(), Conversation::show_face(), and Wizard_eye().

Here is the call graph for this function:

void ShapeID::set_translucent ( int  trans  )  [inline]

Definition at line 192 of file shapeid.h.

References has_trans.

bool ShapeID::is_translucent (  )  [inline]

Definition at line 194 of file shapeid.h.

References cache_shape(), has_trans, and shape.

Here is the call graph for this function:

void ShapeID::set_shape ( int  shnum,
int  frnum 
) [inline]

Definition at line 197 of file shapeid.h.

References framenum, shape, and shapenum.

Referenced by CombatStats_gump::CombatStats_gump(), Face_button::Face_button(), Bake_schedule::now_what(), CheatScreen::NPCActivate(), Actor::set_actor_shape(), Usecode_internal::set_item_shape(), Actor::set_polymorph(), Conversation::show_avatar_choices(), Conversation::show_face(), and Face_button::update_widget().

void ShapeID::set_shape ( int  shnum  )  [inline]

Definition at line 208 of file shapeid.h.

References shape, and shapenum.

void ShapeID::set_frame ( int  frnum  )  [inline]

Definition at line 210 of file shapeid.h.

References framenum, and shape.

Referenced by Gump_ToggleTextButton::activate(), Gump_ToggleButton::activate(), Enabled_button::activate(), Combat_mode_button::Combat_mode_button(), Enabled_button::Enabled_button(), Face_button::Face_button(), Gump_ToggleButton::Gump_ToggleButton(), Gump_ToggleTextButton::Gump_ToggleTextButton(), Bake_schedule::now_what(), Usecode_internal::set_item_frame(), Conversation::show_avatar_choices(), Spell_button::Spell_button(), Jawbone_object::update_frame(), Face_button::update_widget(), Animated_ifix_object::write_ifix(), and Animated_ireg_object::write_ireg().

void ShapeID::set_file ( ShapeFile  shfile  )  [inline]

Definition at line 212 of file shapeid.h.

References shape, and shapefile.

Referenced by Face_button::Face_button(), Actor::set_actor_shape(), Conversation::show_avatar_choices(), Conversation::show_face(), and Face_button::update_widget().

void ShapeID::paint_shape ( int  xoff,
int  yoff,
bool  force_trans = false 
) [inline]

Definition at line 215 of file shapeid.h.

References get_shape(), has_trans, Shape_manager::paint_shape(), and Game_singletons::sman.

Referenced by CheatScreen::NPCDisplay(), Paint_centered::paint(), Spellbook_gump::paint(), Newfile_gump::paint(), Jawbone_gump::paint(), Actor_gump::paint(), Actor::paint_weapon(), Newfile_gump::PaintSaveName(), and Wizard_eye().

Here is the call graph for this function:

void ShapeID::paint_invisible ( int  xoff,
int  yoff 
) [inline]

Definition at line 220 of file shapeid.h.

References get_shape(), Shape_manager::paint_invisible(), and Game_singletons::sman.

Referenced by Actor::paint_weapon().

Here is the call graph for this function:

void ShapeID::paint_outline ( int  xoff,
int  yoff,
Pixel_colors  pix 
) [inline]

Definition at line 223 of file shapeid.h.

References get_shape(), Shape_manager::paint_outline(), and Game_singletons::sman.

Referenced by Actor::paint(), and Game_object::paint_outline().

Here is the call graph for this function:

int ShapeID::get_num_frames (  )  const

Definition at line 313 of file shapeid.cc.

References Shape_manager::files, Vga_file::get_num_frames(), Vga_file::is_good(), SF_OTHER, shapefile, shapenum, Shape_manager::shapes, and Game_singletons::sman.

Referenced by Spellbook_gump::change_page(), Animator::create(), Frame_animator::Initialize(), Spellbook_gump::paint(), Game_window::read_npcs(), and Usecode_internal::set_item_frame().

Here is the call graph for this function:

Shape_info& ShapeID::get_info (  )  const [inline]

Definition at line 226 of file shapeid.h.

References Shapes_vga_file::get_info(), Shape_manager::instance, shapenum, and Shape_manager::shapes.

Referenced by Egg_object::activate(), Usecode_internal::add_party_items(), Game_object::attack_object(), ShapeBrowser::browse_shapes(), Check_terrain(), Animator::create(), Monster_actor::create(), Game_map::create_ifix_object(), Game_map::create_ireg_object(), Create_object(), Container_game_object::create_quantity(), Game_window::drop_at_lift(), Dragging_info::drop_on_map(), Actor::figure_hit_points(), Actor::figure_weapon_pos(), Map_chunk::find_spot(), Game_map::find_unused_shapes(), Barge_object::gather(), Get_combine_info(), Game_map::get_ifix_chunk_objects(), Game_object::get_name(), Actor::get_tile_info(), Actor::get_weapon(), Get_weapon_frames(), Game_object::get_weight(), Projectile_effect::handle_event(), Has_hitpoints(), Has_quantity(), In_ammo_family(), Projectile_effect::init(), Sit_actor_action::is_occupied(), Monster_pathfinder_client::Monster_pathfinder_client(), Bake_schedule::now_what(), Lab_schedule::now_what(), Game_map::read_ireg_objects(), Usecode_internal::set_item_shape(), Combat_schedule::set_weapon(), Map_chunk::setup_dungeon_levels(), Game_window::show_items(), Combat_schedule::start_strike(), Path_walking_actor_action::stop(), Game_object::swap_positions(), Swap_weapons(), Usecode_internal::UI_create_new_object(), Usecode_internal::UI_is_not_blocked(), Usecode_internal::UI_is_water(), and Usecode_internal::UI_summon().

Here is the call graph for this function:

static Shape_info& ShapeID::get_info ( int  shnum  )  [inline, static]

Definition at line 228 of file shapeid.h.

References Shapes_vga_file::get_info(), Shape_manager::instance, and Shape_manager::shapes.

Here is the call graph for this function:


Member Data Documentation

short ShapeID::shapenum [private]

Reimplemented in Gump.

Definition at line 149 of file shapeid.h.

Referenced by cache_shape(), get_info(), get_num_frames(), get_shapenum(), is_invalid(), Armor_info::read(), Ammo_info::read(), Weapon_info::read(), set_shape(), ShapeID(), and Chunk_terrain::write_flats().

signed char ShapeID::framenum [private]

Definition at line 150 of file shapeid.h.

Referenced by cache_shape(), get_framenum(), set_frame(), set_shape(), ShapeID(), and Chunk_terrain::write_flats().

char ShapeID::has_trans [private]

Definition at line 151 of file shapeid.h.

Referenced by cache_shape(), is_translucent(), paint_shape(), and set_translucent().

ShapeFile ShapeID::shapefile [private]

Definition at line 152 of file shapeid.h.

Referenced by cache_shape(), get_num_frames(), get_shapefile(), and set_file().

Shape_frame* ShapeID::shape [private]

Definition at line 153 of file shapeid.h.

Referenced by Gump_manager::add_gump(), cache_shape(), get_shape(), Gump_text::Gump_text(), is_translucent(), Jawbone_gump::on_tooth(), Shape_manager::paint_invisible(), Shape_manager::paint_outline(), Shape_manager::paint_shape(), Chunk_terrain::paint_tile(), Jawbone_gump::paint_tooth(), Chunk_terrain::render_all(), set_file(), set_frame(), Gump::set_pos(), set_shape(), and Jawbone_gump::set_to_spot().


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