Gump_manager Class Reference

#include <Gump_manager.h>

Inheritance diagram for Gump_manager:

Inheritance graph
[legend]
Collaboration diagram for Gump_manager:

Collaboration graph
[legend]
List of all members.

Public Member Functions

void add_gump (Gump *gump)
void add_gump (Game_object *obj, int shapenum)
bool remove_gump (Gump *gump)
bool close_gump (Gump *gump)
void close_all_gumps (bool pers=false)
bool showing_gumps (bool no_pers=false) const
bool gump_mode () const
bool modal_gump_mode () const
Gumpfind_gump (int x, int y, bool pers=true)
Gumpfind_gump (Game_object *obj)
Gumpfind_gump (Game_object *obj, int shapenum)
void update_gumps ()
void paint ()
bool double_clicked (int x, int y, Game_object *&obj)
bool can_right_click_close ()
void set_right_click_close (bool r)
bool gumps_dont_pause_game ()
void set_gumps_dont_pause_game (bool p)
int okay_to_quit ()
int prompt_for_number (int minval, int maxval, int step, int def, Paintable *paint=0)
int do_modal_gump (Modal_gump *, Mouse::Mouse_shapes, Paintable *paint=0)
void paint_num (int num, int x, int y)
 Gump_manager ()
 ~Gump_manager ()

Private Member Functions

int handle_modal_gump_event (Modal_gump *gump, SDL_Event &event)

Private Attributes

Gump_listopen_gumps
int non_persistent_count
int modal_gump_count
bool right_click_close
bool dont_pause_game

Classes

struct  Gump_list

Detailed Description

Definition at line 34 of file Gump_manager.h.


Constructor & Destructor Documentation

Gump_manager::Gump_manager (  ) 

Definition at line 51 of file Gump_manager.cc.

References config, dont_pause_game, right_click_close, Configuration::set(), and Configuration::value().

Here is the call graph for this function:

Gump_manager::~Gump_manager (  )  [inline]

Definition at line 87 of file Gump_manager.h.

References close_all_gumps().

Here is the call graph for this function:


Member Function Documentation

void Gump_manager::add_gump ( Gump gump  ) 

Definition at line 148 of file Gump_manager.cc.

References dont_pause_game, Game::get_ticks(), Game_window::get_tqueue(), Game_singletons::gwin, Gump::is_persistent(), Gump_manager::Gump_list::next, non_persistent_count, open_gumps, and Time_queue::pause().

Referenced by ActionCombatStats(), ActionInventory(), ActionStats(), Spellbook_object::activate(), Container_game_object::activate(), Face_stats::CreateGump(), Stat_bar::double_clicked(), and Actor::show_inventory().

Here is the call graph for this function:

void Gump_manager::add_gump ( Game_object obj,
int  shapenum 
)

Definition at line 223 of file Gump_manager.cc.

References ACTOR_FIRST_GUMP, ACTOR_LAST_GUMP, BLACK_GATE, Shape_manager::can_use_paperdolls(), dragged, game, Audio::game_sfx(), Shape_manager::get_bg_paperdolls(), Game_window::get_dragging_gump(), Game::get_game_type(), Game_window::get_height(), Gump::get_owner(), Audio::get_ptr(), Game::get_shape(), ShapeID::get_shape(), ShapeID::get_shapenum(), Game_window::get_width(), Shape_frame::get_xright(), Shape_frame::get_ybelow(), Gump_manager::Gump_list::gump, gwin, Gump_manager::Gump_list::next, Exult_server::npc, Exult_server::obj, Game_window::paint(), Audio::play_sound_effect(), SERPENT_ISLE, SF_GUMPS_VGA, SF_PAPERDOL_VGA, Ucscript::sfx, ShapeID::shape, and Game_singletons::sman.

Here is the call graph for this function:

bool Gump_manager::remove_gump ( Gump gump  ) 

Definition at line 182 of file Gump_manager.cc.

References dont_pause_game, Game::get_ticks(), Game_window::get_tqueue(), Gump_manager::Gump_list::gump, Game_singletons::gwin, Gump::is_persistent(), Gump_manager::Gump_list::next, non_persistent_count, open_gumps, and Time_queue::resume().

Referenced by close_gump().

Here is the call graph for this function:

bool Gump_manager::close_gump ( Gump gump  ) 

Definition at line 171 of file Gump_manager.cc.

References remove_gump().

Referenced by Handle_event(), and Face_stats::RemoveGump().

Here is the call graph for this function:

void Gump_manager::close_all_gumps ( bool  pers = false  ) 

Definition at line 319 of file Gump_manager.cc.

References Game_window::get_npc_prox(), Game::get_ticks(), Game_window::get_tqueue(), Gump_manager::Gump_list::gump, gwin, Gump::is_modal(), Gump::is_persistent(), Gump_manager::Gump_list::next, Game_window::paint(), Time_queue::resume(), and Npc_proximity_handler::wait().

Referenced by ActionCloseGumps(), ActionCloseOrMenu(), and ~Gump_manager().

Here is the call graph for this function:

bool Gump_manager::showing_gumps ( bool  no_pers = false  )  const

Definition at line 70 of file Gump_manager.cc.

References Gump_manager::Gump_list::next, and open_gumps.

Referenced by ActionCloseOrMenu().

bool Gump_manager::gump_mode (  )  const [inline]

Definition at line 59 of file Gump_manager.h.

References non_persistent_count.

Referenced by Handle_event(), and Mouse::set_speed_cursor().

bool Gump_manager::modal_gump_mode (  )  const [inline]

Definition at line 61 of file Gump_manager.h.

References modal_gump_count.

Gump * Gump_manager::find_gump ( int  x,
int  y,
bool  pers = true 
)

Definition at line 90 of file Gump_manager.cc.

References Gump_manager::Gump_list::gump, and Gump_manager::Gump_list::next.

Referenced by ActionInventory(), ActionStats(), ActionTryKeys(), Cheat::delete_object(), Figure_text_pos(), Virtue_stone_object::get_ireg_size(), Spellbook_object::get_ireg_size(), Ireg_game_object::get_ireg_size(), Egg_object::get_ireg_size(), Container_game_object::get_ireg_size(), Handle_event(), Cheat::paste(), and Mouse::set_speed_cursor().

Gump * Gump_manager::find_gump ( Game_object obj  ) 

Definition at line 111 of file Gump_manager.cc.

References Exult_server::obj.

Gump * Gump_manager::find_gump ( Game_object obj,
int  shapenum 
)

Definition at line 131 of file Gump_manager.cc.

References Gump::get_owner(), ShapeID::get_shapenum(), Gump_manager::Gump_list::gump, and Gump_manager::Gump_list::next.

Here is the call graph for this function:

void Gump_manager::update_gumps (  ) 

Definition at line 388 of file Gump_manager.cc.

References Gump_manager::Gump_list::next, and open_gumps.

Referenced by Game_window::paint_dirty().

void Gump_manager::paint (  ) 

Definition at line 397 of file Gump_manager.cc.

References Gump_manager::Gump_list::next, and open_gumps.

bool Gump_manager::double_clicked ( int  x,
int  y,
Game_object *&  obj 
)

Definition at line 359 of file Gump_manager.cc.

References Gump::close(), Gump_button::double_clicked(), Gump::find_object(), Game_window::get_double_click_closes_gumps(), gwin, Exult_server::obj, Gump::on_button(), and Game_window::paint().

Here is the call graph for this function:

bool Gump_manager::can_right_click_close (  )  [inline]

Definition at line 73 of file Gump_manager.h.

References right_click_close.

Referenced by Handle_event(), handle_modal_gump_event(), and GameplayOptions_gump::load_settings().

void Gump_manager::set_right_click_close ( bool  r  )  [inline]

Definition at line 74 of file Gump_manager.h.

References right_click_close.

Referenced by GameplayOptions_gump::save_settings().

bool Gump_manager::gumps_dont_pause_game (  )  [inline]

Definition at line 76 of file Gump_manager.h.

References dont_pause_game.

Referenced by GameplayOptions_gump::load_settings(), and Mouse::set_speed_cursor().

void Gump_manager::set_gumps_dont_pause_game ( bool  p  ) 

Definition at line 614 of file Gump_manager.cc.

References dont_pause_game, Game::get_ticks(), Game_window::get_tqueue(), Game_singletons::gwin, Gump::is_persistent(), open_gumps, Time_queue::pause(), and Time_queue::resume().

Referenced by GameplayOptions_gump::save_settings().

Here is the call graph for this function:

int Gump_manager::okay_to_quit (  ) 

Definition at line 409 of file Gump_manager.cc.

References Yesno_gump::ask(), QUIT_TIME_YES, and quitting_time.

Referenced by ActionQuit(), and Handle_event().

Here is the call graph for this function:

int Gump_manager::prompt_for_number ( int  minval,
int  maxval,
int  step,
int  def,
Paintable paint = 0 
)

Definition at line 577 of file Gump_manager.cc.

References Slider_gump::get_val(), Mouse::hand, and Gump::paint().

Here is the call graph for this function:

int Gump_manager::do_modal_gump ( Modal_gump ,
Mouse::Mouse_shapes  ,
Paintable paint = 0 
)

Definition at line 502 of file Gump_manager.cc.

References Delay(), Mouse::dontchange, GL_manager::get_instance(), Mouse::get_shape(), Game_window::get_tqueue(), gwin, Mouse::hide(), Modal_gump::is_done(), Mouse::mouse, Mouse::mouse_update, Gump::paint(), Game_window::paint(), Time_queue::pause(), Time_queue::resume(), Mouse::set_shape(), Game_window::show(), and Mouse::show().

Referenced by ActionFileGump(), ActionMenuGump(), ActionOldFileGump(), Gamemenu_gump::audio_options(), Gamemenu_gump::combat_options(), Gamemenu_gump::gameplay_options(), Gamemenu_gump::loadsave(), and Gamemenu_gump::video_options().

Here is the call graph for this function:

void Gump_manager::paint_num ( int  num,
int  x,
int  y 
)

Definition at line 598 of file Gump_manager.cc.

References Shape_manager::get_text_width(), Shape_manager::paint_text(), Game_singletons::sman, and snprintf.

Referenced by Stats_gump::paint(), and CombatStats_gump::paint().

Here is the call graph for this function:

int Gump_manager::handle_modal_gump_event ( Modal_gump gump,
SDL_Event &  event 
) [private]

Definition at line 418 of file Gump_manager.cc.

References can_right_click_close(), Game_window::get_fastmouse(), Game_window::get_mouse3rd(), Image_window::get_scale(), Game_window::get_win(), Gump::get_x(), Gump::get_y(), Game_singletons::gumpman, gwin, Modal_gump::key_down(), make_screenshot(), Mouse::mouse, Modal_gump::mouse_down(), Modal_gump::mouse_drag(), Modal_gump::mouse_up(), Mouse::mouse_update, Modal_gump::mousewheel_down(), Modal_gump::mousewheel_up(), Mouse::move(), and Modal_gump::text_input().

Here is the call graph for this function:


Member Data Documentation

Gump_list* Gump_manager::open_gumps [private]

Definition at line 45 of file Gump_manager.h.

Referenced by add_gump(), paint(), remove_gump(), set_gumps_dont_pause_game(), showing_gumps(), and update_gumps().

int Gump_manager::non_persistent_count [private]

Definition at line 46 of file Gump_manager.h.

Referenced by add_gump(), gump_mode(), and remove_gump().

int Gump_manager::modal_gump_count [private]

Definition at line 47 of file Gump_manager.h.

Referenced by modal_gump_mode().

bool Gump_manager::right_click_close [private]

Definition at line 48 of file Gump_manager.h.

Referenced by can_right_click_close(), Gump_manager(), and set_right_click_close().

bool Gump_manager::dont_pause_game [private]

Definition at line 49 of file Gump_manager.h.

Referenced by add_gump(), Gump_manager(), gumps_dont_pause_game(), remove_gump(), and set_gumps_dont_pause_game().


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