#include <Gump.h>
Inheritance diagram for Gump:
Public Member Functions | |
Gump (Container_game_object *cont, int initx, int inity, int shnum, ShapeFile shfile=SF_GUMPS_VGA) | |
Gump (Container_game_object *cont, int shnum, ShapeFile shfile=SF_GUMPS_VGA) | |
virtual | ~Gump () |
int | get_x () |
int | get_y () |
void | set_pos (int newx, int newy) |
void | set_pos () |
Container_game_object * | get_container () |
virtual Container_game_object * | find_actor (int mx, int my) |
Container_game_object * | get_cont_or_actor (int mx, int my) |
Rectangle | get_shape_rect (Game_object *obj) |
void | get_shape_location (Game_object *obj, int &ox, int &oy) |
virtual Game_object * | find_object (int mx, int my) |
virtual Rectangle | get_dirty () |
virtual Game_object * | get_owner () |
virtual Gump_button * | on_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 | remove (Game_object *obj) |
virtual void | paint () |
virtual void | close () |
virtual void | update_gump () |
virtual bool | is_draggable () const |
virtual bool | is_persistent () const |
virtual bool | is_modal () const |
virtual bool | no_handcursor () const |
virtual bool | has_point (int x, int y) |
virtual Rectangle | get_rect () |
Protected Member Functions | |
Gump () | |
void | set_object_area (Rectangle area, int checkx=8, int checky=64) |
Protected Attributes | |
Container_game_object * | container |
int | x |
int | y |
unsigned char | shapenum |
Rectangle | object_area |
Checkmark_button * | check_button |
Private Member Functions | |
UNREPLICATABLE_CLASS (Gump) |
Definition at line 36 of file Gump.h.
Gump::Gump | ( | Container_game_object * | cont, | |
int | initx, | |||
int | inity, | |||
int | shnum, | |||
ShapeFile | shfile = SF_GUMPS_VGA | |||
) |
Gump::Gump | ( | Container_game_object * | cont, | |
int | shnum, | |||
ShapeFile | shfile = SF_GUMPS_VGA | |||
) |
Definition at line 52 of file Gump.cc.
References Shape_frame::get_height(), Game_window::get_height(), Shape_frame::get_width(), Game_window::get_width(), and gwin.
Here is the call graph for this function:
Gump::~Gump | ( | ) | [virtual] |
Gump::UNREPLICATABLE_CLASS | ( | Gump | ) | [private] |
void Gump::set_object_area | ( | Rectangle | area, | |
int | checkx = 8 , |
|||
int | checky = 64 | |||
) | [protected] |
Definition at line 91 of file Gump.cc.
Referenced by AudioOptions_gump::AudioOptions_gump(), CombatOptions_gump::CombatOptions_gump(), CombatStats_gump::CombatStats_gump(), Gamemenu_gump::Gamemenu_gump(), GameplayOptions_gump::GameplayOptions_gump(), Jawbone_gump::Jawbone_gump(), and VideoOptions_gump::VideoOptions_gump().
int Gump::get_x | ( | ) | [inline] |
Definition at line 55 of file Gump.h.
References x.
Referenced by Gump_widget::get_rect(), Gump_manager::handle_modal_gump_event(), Text_button::on_widget(), Text_button::paint(), and Portrait_button::paint().
int Gump::get_y | ( | ) | [inline] |
Definition at line 57 of file Gump.h.
References y.
Referenced by Gump_widget::get_rect(), Gump_manager::handle_modal_gump_event(), Text_button::on_widget(), Text_button::paint(), and Portrait_button::paint().
void Gump::set_pos | ( | int | newx, | |
int | newy | |||
) | [inline] |
void Gump::set_pos | ( | ) |
Definition at line 79 of file Gump.cc.
References Shape_frame::get_height(), Game_window::get_height(), ShapeID::get_shape(), Shape_frame::get_width(), Game_window::get_width(), Game_singletons::gwin, ShapeID::shape, x, and y.
Referenced by Gamemenu_gump::video_options().
Here is the call graph for this function:
Container_game_object* Gump::get_container | ( | ) | [inline] |
virtual Container_game_object* Gump::find_actor | ( | int | mx, | |
int | my | |||
) | [inline, virtual] |
Reimplemented in Actor_gump, Face_stats, and Paperdoll_gump.
Definition at line 67 of file Gump.h.
Referenced by get_cont_or_actor().
Container_game_object* Gump::get_cont_or_actor | ( | int | mx, | |
int | my | |||
) | [inline] |
Definition at line 69 of file Gump.h.
References find_actor(), and get_container().
Referenced by Dragging_info::drop(), Dragging_info::drop_on_gump(), and Game_window::show_items().
Here is the call graph for this function:
Rectangle Gump::get_shape_rect | ( | Game_object * | obj | ) |
Definition at line 107 of file Gump.cc.
References Exult_server::obj, and s.
Referenced by Figure_text_pos().
void Gump::get_shape_location | ( | Game_object * | obj, | |
int & | ox, | |||
int & | oy | |||
) |
Game_object * Gump::find_object | ( | int | mx, | |
int | my | |||
) | [virtual] |
Reimplemented in Jawbone_gump, Paperdoll_gump, and Stats_gump.
Definition at line 140 of file Gump.cc.
References Game_object::get_next(), Rectangle::has_point(), Exult_server::obj, and s.
Referenced by ActionTryKeys(), Cheat::delete_object(), Gump_manager::double_clicked(), and Game_window::show_items().
Here is the call graph for this function:
Rectangle Gump::get_dirty | ( | ) | [virtual] |
Definition at line 175 of file Gump.cc.
References Rectangle::add(), and Exult_server::obj.
Referenced by Handle_event().
Here is the call graph for this function:
Game_object * Gump::get_owner | ( | ) | [virtual] |
Reimplemented in Spellbook_gump, and Spellscroll_gump.
Definition at line 195 of file Gump.cc.
References container.
Referenced by Gump_manager::add_gump(), and Gump_manager::find_gump().
Gump_button * Gump::on_button | ( | int | mx, | |
int | my | |||
) | [virtual] |
Reimplemented in Actor_gump, CombatStats_gump, Face_stats, Paperdoll_gump, Spellbook_gump, and Spellscroll_gump.
Definition at line 207 of file Gump.cc.
Referenced by Gump_manager::double_clicked(), VideoOptions_gump::mouse_down(), Slider_gump::mouse_down(), Newfile_gump::mouse_down(), GameplayOptions_gump::mouse_down(), Gamemenu_gump::mouse_down(), File_gump::mouse_down(), CombatOptions_gump::mouse_down(), AudioOptions_gump::mouse_down(), Spellscroll_gump::on_button(), Spellbook_gump::on_button(), Paperdoll_gump::on_button(), CombatStats_gump::on_button(), and Actor_gump::on_button().
int 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 in Actor_gump, CombatStats_gump, Face_stats, Jawbone_gump, Paperdoll_gump, and Stats_gump.
Definition at line 224 of file Gump.cc.
References Game_object::drop(), Shape_frame::get_xleft(), Shape_frame::get_xright(), Shape_frame::get_yabove(), Shape_frame::get_ybelow(), and Exult_server::obj.
Referenced by Dragging_info::drop_on_gump().
Here is the call graph for this function:
void Gump::remove | ( | Game_object * | obj | ) | [virtual] |
Definition at line 274 of file Gump.cc.
References gwin, Exult_server::obj, Game_window::paint_dirty(), Game_window::set_all_dirty(), and Rectangle::shift().
Here is the call graph for this function:
void Gump::paint | ( | ) | [virtual] |
Implements Paintable.
Reimplemented in Actor_gump, AudioOptions_gump, Book_gump, CombatOptions_gump, CombatStats_gump, Face_stats, File_gump, Gamemenu_gump, GameplayOptions_gump, Jawbone_gump, Newfile_gump, Paperdoll_gump, Scroll_gump, Sign_gump, Slider_gump, Spellbook_gump, Spellscroll_gump, Stats_gump, VideoOptions_gump, and Yesno_gump.
Definition at line 294 of file Gump.cc.
References cheat, Shape_frame::get_height(), T_Object_iterator< T >::get_next(), Cheat::get_selected(), Shape_frame::get_width(), Shape_frame::get_xleft(), Shape_frame::get_xright(), Shape_frame::get_yabove(), Shape_frame::get_ybelow(), Rectangle::h, HIT_PIXEL, T_Object_list< T >::is_empty(), Exult_server::obj, Rectangle::shift(), Rectangle::w, Rectangle::x, and Rectangle::y.
Referenced by Gump_manager::do_modal_gump(), VideoOptions_gump::paint(), Spellscroll_gump::paint(), Spellbook_gump::paint(), Newfile_gump::paint(), GameplayOptions_gump::paint(), Gamemenu_gump::paint(), File_gump::paint(), CombatStats_gump::paint(), CombatOptions_gump::paint(), AudioOptions_gump::paint(), Actor_gump::paint(), Gump_manager::prompt_for_number(), and Usecode_internal::set_item_shape().
Here is the call graph for this function:
void Gump::close | ( | ) | [virtual] |
Reimplemented in AudioOptions_gump, CombatOptions_gump, File_gump, Gamemenu_gump, GameplayOptions_gump, Newfile_gump, Slider_gump, and VideoOptions_gump.
Definition at line 370 of file Gump.cc.
Referenced by Gump_manager::double_clicked().
virtual void Gump::update_gump | ( | ) | [inline, virtual] |
virtual bool Gump::is_draggable | ( | ) | const [inline, virtual] |
virtual bool Gump::is_persistent | ( | ) | const [inline, virtual] |
Reimplemented in Face_stats.
Definition at line 99 of file Gump.h.
Referenced by Gump_manager::add_gump(), Gump_manager::close_all_gumps(), Gump_manager::remove_gump(), and Gump_manager::set_gumps_dont_pause_game().
virtual bool Gump::is_modal | ( | ) | const [inline, virtual] |
Reimplemented in Modal_gump.
Definition at line 100 of file Gump.h.
Referenced by Gump_manager::close_all_gumps().
virtual bool Gump::no_handcursor | ( | ) | const [inline, virtual] |
bool Gump::has_point | ( | int | x, | |
int | y | |||
) | [virtual] |
Reimplemented in Face_stats.
Definition at line 379 of file Gump.cc.
References ShapeID::get_shape(), s, x, and y.
Here is the call graph for this function:
Rectangle Gump::get_rect | ( | ) | [virtual] |
Reimplemented in Face_stats.
Definition at line 392 of file Gump.cc.
References ShapeID::get_shape(), s, x, and y.
Here is the call graph for this function:
Container_game_object* Gump::container [protected] |
Definition at line 41 of file Gump.h.
Referenced by Paperdoll_gump::find_actor(), Actor_gump::find_actor(), Stats_gump::get_actor(), Paperdoll_gump::get_arm_type(), get_container(), and get_owner().
int Gump::x [protected] |
Definition at line 43 of file Gump.h.
Referenced by Face_stats::create_buttons(), Jawbone_gump::find_object(), get_rect(), get_x(), has_point(), VideoOptions_gump::paint(), Jawbone_gump::paint(), GameplayOptions_gump::paint(), CombatStats_gump::paint(), CombatOptions_gump::paint(), AudioOptions_gump::paint(), Jawbone_gump::paint_tooth(), Newfile_gump::PaintSaveName(), and set_pos().
int Gump::y [protected] |
Definition at line 43 of file Gump.h.
Referenced by Face_stats::create_buttons(), Jawbone_gump::find_object(), get_rect(), get_y(), has_point(), VideoOptions_gump::paint(), Jawbone_gump::paint(), GameplayOptions_gump::paint(), CombatStats_gump::paint(), CombatOptions_gump::paint(), AudioOptions_gump::paint(), Jawbone_gump::paint_tooth(), Newfile_gump::PaintSaveName(), and set_pos().
unsigned char Gump::shapenum [protected] |
Reimplemented from ShapeID.
Definition at line 44 of file Gump.h.
Referenced by CombatStats_gump::CombatStats_gump().
Rectangle Gump::object_area [protected] |
Checkmark_button* Gump::check_button [protected] |