#include <unit_create.hpp>


Public Member Functions | |
| tunit_create () | |
| const std::string & | choice () const |
| Unit type choice from the user. | |
| bool | no_choice () const |
| Whether the user actually chose a unit type or not. | |
| unit_race::GENDER | gender () |
| Gender choice from the user. | |
Private Member Functions | |
| virtual const std::string & | window_id () const |
| Inherited from tdialog, implemented by REGISTER_DIALOG. | |
| void | pre_show (CVideo &video, twindow &window) |
| Inherited from tdialog. | |
| void | post_show (twindow &window) |
| Inherited from tdialog. | |
| void | gender_toggle_callback (twindow &window) |
Private Attributes | |
| unit_race::GENDER | gender_ |
| std::string | choice_ |
| std::vector< std::string > | type_ids_ |
Definition at line 27 of file unit_create.hpp.
| gui2::tunit_create::tunit_create | ( | ) |
Definition at line 82 of file unit_create.cpp.
| const std::string& gui2::tunit_create::choice | ( | ) | const [inline] |
Unit type choice from the user.
Definition at line 33 of file unit_create.hpp.
References choice_.
Referenced by events::menu_handler::create_unit_2().

| unit_race::GENDER gui2::tunit_create::gender | ( | ) | [inline] |
Gender choice from the user.
Definition at line 39 of file unit_create.hpp.
References gender_.
Referenced by events::menu_handler::create_unit_2().

| void gui2::tunit_create::gender_toggle_callback | ( | twindow & | window | ) | [private] |
Definition at line 174 of file unit_create.cpp.
References unit_race::FEMALE, gender_, gui2::ttoggle_button::get_value(), and unit_race::MALE.

| bool gui2::tunit_create::no_choice | ( | ) | const [inline] |
Whether the user actually chose a unit type or not.
Definition at line 36 of file unit_create.hpp.
References choice_.
Referenced by events::menu_handler::create_unit_2().

| void gui2::tunit_create::post_show | ( | twindow & | window | ) | [private, virtual] |
Inherited from tdialog.
Reimplemented from gui2::tdialog.
Definition at line 146 of file unit_create.cpp.
References choice_, ERR_GUI_G, unit_race::FEMALE, gender_, gui2::tdialog::get_retval(), gui2::ttoggle_button::get_value(), and type_ids_.

Inherited from tdialog.
Reimplemented from gui2::tdialog.
Definition at line 89 of file unit_create.cpp.
References choice_, ERR_GUI_G, unit_type_data::find(), unit_type_data::find_race(), gender_, unit_type::HELP_INDEX, gui2::ttoggle_button::set_callback_state_change(), type_ids_, unit_type_data::types(), and unit_types.

| virtual const std::string& gui2::tunit_create::window_id | ( | ) | const [private, virtual] |
Inherited from tdialog, implemented by REGISTER_DIALOG.
Implements gui2::tdialog.
std::string gui2::tunit_create::choice_ [private] |
Definition at line 44 of file unit_create.hpp.
Referenced by choice(), no_choice(), post_show(), and pre_show().
unit_race::GENDER gui2::tunit_create::gender_ [private] |
Definition at line 42 of file unit_create.hpp.
Referenced by gender(), gender_toggle_callback(), post_show(), and pre_show().
std::vector<std::string> gui2::tunit_create::type_ids_ [private] |
Definition at line 45 of file unit_create.hpp.
Referenced by post_show(), and pre_show().
| Generated by doxygen 1.7.1 on Thu May 24 2012 01:22:38 for The Battle for Wesnoth | Gna! | Forum | Wiki | CIA | devdocs |