#include <editor_set_starting_position.hpp>


Public Member Functions | |
| teditor_set_starting_position (unsigned current_player, unsigned maximum_players, const std::vector< map_location > &starting_positions) | |
| unsigned | result () const |
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. | |
Private Attributes | |
| unsigned | players_ |
| unsigned | selection_ |
| std::vector< map_location > | starting_positions_ |
Definition at line 27 of file editor_set_starting_position.hpp.
| gui2::teditor_set_starting_position::teditor_set_starting_position | ( | unsigned | current_player, | |
| unsigned | maximum_players, | |||
| const std::vector< map_location > & | starting_positions | |||
| ) |
Definition at line 66 of file editor_set_starting_position.cpp.
| void gui2::teditor_set_starting_position::post_show | ( | twindow & | window | ) | [private, virtual] |
Inherited from tdialog.
Reimplemented from gui2::tdialog.
Definition at line 110 of file editor_set_starting_position.cpp.
References gui2::tdialog::get_retval(), gui2::tlistbox::get_selected_row(), gui2::twindow::OK, and selection_.

| void gui2::teditor_set_starting_position::pre_show | ( | CVideo & | video, | |
| twindow & | window | |||
| ) | [private, virtual] |
Inherited from tdialog.
Reimplemented from gui2::tdialog.
Definition at line 76 of file editor_set_starting_position.cpp.
References _, gui2::tlistbox::add_row(), utils::interpolate_variables_into_string(), gui2::tlistbox::select_row(), selection_, starting_positions_, str_cast(), map_location::valid(), map_location::x, and map_location::y.

| unsigned gui2::teditor_set_starting_position::result | ( | ) | const [inline] |
Definition at line 32 of file editor_set_starting_position.hpp.
References selection_.
| virtual const std::string& gui2::teditor_set_starting_position::window_id | ( | ) | const [private, virtual] |
Inherited from tdialog, implemented by REGISTER_DIALOG.
Implements gui2::tdialog.
unsigned gui2::teditor_set_starting_position::players_ [private] |
Definition at line 35 of file editor_set_starting_position.hpp.
unsigned gui2::teditor_set_starting_position::selection_ [private] |
Definition at line 35 of file editor_set_starting_position.hpp.
Referenced by post_show(), pre_show(), and result().
std::vector<map_location> gui2::teditor_set_starting_position::starting_positions_ [private] |
Definition at line 36 of file editor_set_starting_position.hpp.
Referenced by pre_show().
| Generated by doxygen 1.7.1 on Thu May 24 2012 01:22:06 for The Battle for Wesnoth | Gna! | Forum | Wiki | CIA | devdocs |