#include <multiplayer_wait.hpp>
Public Member Functions | |
wait (game_display &disp, const config &cfg, chat &c, config &gamelist) | |
virtual void | process_event () |
void | join_game (bool observe) |
const game_state & | get_state () |
void | start_game () |
game_state & | request_snapshot () |
Protected Member Functions | |
virtual void | layout_children (const SDL_Rect &rect) |
virtual void | hide_children (bool hide=true) |
virtual void | process_network_data (const config &data, const network::connection sock) |
Private Member Functions | |
void | generate_menu () |
Private Attributes | |
gui::button | cancel_button_ |
gui::label | start_label_ |
gui::menu | game_menu_ |
config | level_ |
game_state | state_ |
bool | stop_updates_ |
Classes | |
class | leader_preview_pane |
Definition at line 28 of file multiplayer_wait.hpp.
mp::wait::wait | ( | game_display & | disp, | |
const config & | cfg, | |||
mp::chat & | c, | |||
config & | gamelist | |||
) |
Definition at line 192 of file multiplayer_wait.cpp.
References game_menu_, mp::ui::gamelist_updated(), and gui::menu::set_numeric_keypress_selection().
void mp::wait::process_event | ( | ) | [virtual] |
Reimplemented from mp::ui.
Definition at line 204 of file multiplayer_wait.cpp.
References cancel_button_, gui::button::pressed(), mp::ui::QUIT, and mp::ui::set_result().
void mp::wait::join_game | ( | bool | observe | ) |
Definition at line 210 of file multiplayer_wait.cpp.
References _, mp::ui::append_to_title(), mp::check_response(), config::child(), mp::ui::disp(), preferences::era(), generate_menu(), config::get_children(), mp::wait::leader_preview_pane::get_selected_gender(), mp::wait::leader_preview_pane::get_selected_leader(), level_, lexical_cast(), preferences::login(), dialogs::network_receive_dialog(), gui::OK_CANCEL, mp::ui::QUIT, network::send_data(), mp::ui::set_result(), gui::show_dialog(), and config::values.
Referenced by enter_wait_mode().
const game_state & mp::wait::get_state | ( | ) |
Definition at line 316 of file multiplayer_wait.cpp.
References state_.
Referenced by enter_wait_mode().
void mp::wait::start_game | ( | ) |
Definition at line 321 of file multiplayer_wait.cpp.
References game_events::add_events(), config::child(), DBG_NW, statistics::fresh_stats(), config::get_children(), level_, mp::level_to_gamestate(), LOG_NW, statistics::read_stats(), game_state::scenario, and state_.
Referenced by enter_wait_mode().
game_state & mp::wait::request_snapshot | ( | ) |
Definition at line 362 of file multiplayer_wait.cpp.
References config::add_child(), cfg, and state_.
void mp::wait::layout_children | ( | const SDL_Rect & | rect | ) | [protected, virtual] |
Reimplemented from mp::ui.
Definition at line 370 of file multiplayer_wait.cpp.
References gui::ButtonVPadding, cancel_button_, mp::ui::client_area(), game_menu_, gui::widget::height(), mp::ui::layout_children(), gui::widget::set_location(), gui::menu::set_max_height(), gui::menu::set_max_width(), gui::widget::set_measurements(), start_label_, mp::ui::title(), and gui::widget::width().
void mp::wait::hide_children | ( | bool | hide = true |
) | [protected, virtual] |
Reimplemented from mp::ui.
Definition at line 386 of file multiplayer_wait.cpp.
References cancel_button_, game_menu_, gui::scrollarea::hide(), gui::widget::hide(), and mp::ui::hide_children().
void mp::wait::process_network_data | ( | const config & | data, | |
const network::connection | sock | |||
) | [protected, virtual] |
Reimplemented from mp::ui.
Definition at line 394 of file multiplayer_wait.cpp.
References _, config::apply_diff(), config::child(), mp::ui::disp(), generate_menu(), config::get_children(), level_, LOG_NW, gui::OK_ONLY, mp::ui::PLAY, mp::ui::process_network_data(), mp::ui::QUIT, mp::ui::set_result(), gui::dialog::show(), and stop_updates_.
void mp::wait::generate_menu | ( | ) | [private] |
Definition at line 429 of file multiplayer_wait.cpp.
References _, config::child_range(), game_config::color_info(), COLUMN_SEPARATOR, description, unit_type_data::unit_type_map_wrapper::end(), unit_race::FEMALE, unit_type_data::unit_type_map_wrapper::find(), unit_type::flag_rgb(), game_menu_, mp::ui::gamelist(), config::get_children(), mp::get_colour_string(), unit_type::get_gender_unit_type(), font::IMAGE, unit_type::image(), IMAGE_PREFIX, color_range::index(), level_, unit_race::MALE, leader_list_manager::random_enemy_picture, gui::menu::set_items(), mp::ui::set_user_list(), t_string::size(), stop_updates_, t_string::str(), utils::string_bool(), unit_type::type_name(), and unit_type_data::types().
Referenced by join_game(), and process_network_data().
gui::button mp::wait::cancel_button_ [private] |
Definition at line 74 of file multiplayer_wait.hpp.
Referenced by hide_children(), layout_children(), and process_event().
gui::label mp::wait::start_label_ [private] |
gui::menu mp::wait::game_menu_ [private] |
Definition at line 76 of file multiplayer_wait.hpp.
Referenced by generate_menu(), hide_children(), layout_children(), and wait().
config mp::wait::level_ [private] |
Definition at line 80 of file multiplayer_wait.hpp.
Referenced by generate_menu(), join_game(), process_network_data(), and start_game().
game_state mp::wait::state_ [private] |
Reimplemented from gui::widget.
Definition at line 81 of file multiplayer_wait.hpp.
Referenced by get_state(), request_snapshot(), and start_game().
bool mp::wait::stop_updates_ [private] |
Definition at line 83 of file multiplayer_wait.hpp.
Referenced by generate_menu(), and process_network_data().
Generated by doxygen 1.5.5 on 23 May 2008 for The Battle for Wesnoth | Gna! | Forum | Wiki | CIA | devdocs |