#include <CombatOptions_gump.h>
Inheritance diagram for CombatOptions_gump:


Public Member Functions | |
| CombatOptions_gump () | |
| ~CombatOptions_gump () | |
| virtual void | paint () |
| virtual void | close () |
| virtual void | mouse_down (int mx, int my) |
| virtual void | mouse_up (int mx, int my) |
| void | toggle (Gump_button *btn, int state) |
| void | build_buttons () |
| void | load_settings () |
| void | save_settings () |
| void | cancel () |
Private Member Functions | |
| UNREPLICATABLE_CLASS_I (CombatOptions_gump, Modal_gump(0, 0, 0, 0)) | |
Private Attributes | |
| Gump_button * | buttons [5] |
| int | difficulty |
| int | show_hits |
| int | mode |
Definition at line 27 of file CombatOptions_gump.h.
| CombatOptions_gump::CombatOptions_gump | ( | ) |
Definition at line 157 of file CombatOptions_gump.cc.
References build_buttons(), buttons, canceltext, colx, load_settings(), oktext, rowy, and Gump::set_object_area().
Here is the call graph for this function:

| CombatOptions_gump::~CombatOptions_gump | ( | ) |
| CombatOptions_gump::UNREPLICATABLE_CLASS_I | ( | CombatOptions_gump | , | |
| Modal_gump(0, 0, 0, 0) | ||||
| ) | [private] |
| void CombatOptions_gump::paint | ( | ) | [virtual] |
Reimplemented from Gump.
Definition at line 198 of file CombatOptions_gump.cc.
References buttons, colx, Game_singletons::gwin, Gump::paint(), Shape_manager::paint_text(), rowy, Game_window::set_painted(), Game_singletons::sman, Gump::x, and Gump::y.
Here is the call graph for this function:

| void CombatOptions_gump::close | ( | ) | [virtual] |
Reimplemented from Gump.
Definition at line 101 of file CombatOptions_gump.cc.
References Modal_gump::done, and save_settings().
Here is the call graph for this function:

| void CombatOptions_gump::mouse_down | ( | int | mx, | |
| int | my | |||
| ) | [virtual] |
Implements Modal_gump.
Definition at line 211 of file CombatOptions_gump.cc.
References buttons, Gump::on_button(), Gump_button::push(), and Modal_gump::pushed.
Here is the call graph for this function:

| void CombatOptions_gump::mouse_up | ( | int | mx, | |
| int | my | |||
| ) | [virtual] |
Implements Modal_gump.
Definition at line 230 of file CombatOptions_gump.cc.
References Gump_button::on_button(), Modal_gump::pushed, and Gump_button::unpush().
Here is the call graph for this function:

| void CombatOptions_gump::toggle | ( | Gump_button * | btn, | |
| int | state | |||
| ) |
Definition at line 112 of file CombatOptions_gump.cc.
References buttons, difficulty, mode, and show_hits.
| void CombatOptions_gump::build_buttons | ( | ) |
Definition at line 122 of file CombatOptions_gump.cc.
References buttons, colx, difficulty, mode, rowy, and show_hits.
Referenced by CombatOptions_gump().
| void CombatOptions_gump::load_settings | ( | ) |
Definition at line 143 of file CombatOptions_gump.cc.
References Combat::difficulty, difficulty, Combat::mode, mode, Combat::show_hits, and show_hits.
Referenced by CombatOptions_gump().
| void CombatOptions_gump::save_settings | ( | ) |
Definition at line 184 of file CombatOptions_gump.cc.
References config, difficulty, Combat::difficulty, Combat::keypause, mode, Combat::mode, Configuration::set(), show_hits, and Combat::show_hits.
Referenced by close().
Here is the call graph for this function:

| void CombatOptions_gump::cancel | ( | ) |
Gump_button* CombatOptions_gump::buttons[5] [private] |
Definition at line 32 of file CombatOptions_gump.h.
Referenced by build_buttons(), CombatOptions_gump(), mouse_down(), paint(), toggle(), and ~CombatOptions_gump().
int CombatOptions_gump::difficulty [private] |
Definition at line 33 of file CombatOptions_gump.h.
Referenced by build_buttons(), load_settings(), save_settings(), and toggle().
int CombatOptions_gump::show_hits [private] |
Definition at line 34 of file CombatOptions_gump.h.
Referenced by build_buttons(), load_settings(), save_settings(), and toggle().
int CombatOptions_gump::mode [private] |
Definition at line 35 of file CombatOptions_gump.h.
Referenced by build_buttons(), load_settings(), save_settings(), and toggle().
1.5.1