#include <multiplayer_lobby.hpp>
Public Member Functions | |
lobby (game_display &d, const config &cfg, chat &c, config &gamelist) | |
virtual void | process_event () |
Protected Member Functions | |
virtual void | hide_children (bool hide=true) |
virtual void | layout_children (const SDL_Rect &rect) |
virtual void | process_network_data (const config &data, const network::connection sock) |
virtual void | gamelist_updated (bool silent=true) |
Private Attributes | |
std::vector< bool > | game_vacant_slots_ |
std::vector< bool > | game_observers_ |
gui::button | observe_game_ |
gui::button | join_game_ |
gui::button | create_game_ |
gui::button | skip_replay_ |
gui::button | game_preferences_ |
gui::button | quit_game_ |
int | last_selected_game_ |
lobby_sorter | sorter_ |
gamebrowser | games_menu_ |
std::map< std::string, std::string > | minimaps_ |
Classes | |
class | lobby_sorter |
Definition at line 104 of file multiplayer_lobby.hpp.
mp::lobby::lobby | ( | game_display & | d, | |
const config & | cfg, | |||
chat & | c, | |||
config & | gamelist | |||
) |
Definition at line 644 of file multiplayer_lobby.cpp.
References _, game_config::debug, gamelist_updated(), game_config::lobby_music, sound::play_music_repeatedly(), gui::button::set_check(), gui::widget::set_help_string(), preferences::skip_mp_replay(), and skip_replay_.
void mp::lobby::process_event | ( | ) | [virtual] |
Reimplemented from mp::ui.
Definition at line 733 of file multiplayer_lobby.cpp.
References _, config::add_child(), gui::button::checked(), mp::ui::CREATE, create_game_, mp::gamebrowser::game_item::current_turn, mp::ui::disp_, mp::gamebrowser::empty(), gui::button::enable(), game_preferences_, mp::ui::gamelist_updated(), games_menu_, mp::gamebrowser::game_item::id, mp::ui::JOIN, events::handler::join(), join_game_, last_selected_game_, mp::ui::OBSERVE, observe_game_, gui::OK_CANCEL, mp::gamebrowser::game_item::password_required, mp::ui::PREFERENCES, gui::button::pressed(), mp::ui::QUIT, quit_game_, recorder, mp::gamebrowser::reset_selection(), mp::gamebrowser::selected(), mp::gamebrowser::selected_game(), mp::gamebrowser::selection(), mp::gamebrowser::selection_is_joinable(), mp::gamebrowser::selection_is_observable(), network::send_data(), preferences::set_message_private(), playmp_controller::set_replay_last_turn(), mp::ui::set_result(), mp::ui::set_selected_game(), replay::set_skip(), preferences::set_skip_mp_replay(), gui::show_dialog(), skip_replay_, and mp::gamebrowser::game_item::started.
void mp::lobby::hide_children | ( | bool | hide = true |
) | [protected, virtual] |
Reimplemented from mp::ui.
Definition at line 665 of file multiplayer_lobby.cpp.
References create_game_, game_preferences_, games_menu_, gui::widget::hide(), gui::scrollarea::hide(), mp::ui::hide_children(), join_game_, observe_game_, quit_game_, and skip_replay_.
void mp::lobby::layout_children | ( | const SDL_Rect & | rect | ) | [protected, virtual] |
Reimplemented from mp::ui.
Definition at line 680 of file multiplayer_lobby.cpp.
References gui::ButtonVPadding, mp::ui::client_area(), create_game_, game_preferences_, games_menu_, gui::widget::height(), join_game_, mp::ui::layout_children(), gui::widget::location(), observe_game_, quit_game_, gui::widget::set_location(), gui::widget::set_measurements(), skip_replay_, mp::ui::title(), mp::ui::xscale(), mp::ui::xscale_base, and mp::ui::yscale().
void mp::lobby::process_network_data | ( | const config & | data, | |
const network::connection | sock | |||
) | [protected, virtual] |
Reimplemented from mp::ui.
Definition at line 817 of file multiplayer_lobby.cpp.
References last_selected_game_, and mp::ui::process_network_data().
void mp::lobby::gamelist_updated | ( | bool | silent = true |
) | [protected, virtual] |
Reimplemented from mp::ui.
Definition at line 719 of file multiplayer_lobby.cpp.
References config::child(), gui::button::enable(), mp::ui::game_config(), mp::ui::gamelist(), mp::ui::gamelist_updated(), games_menu_, join_game_, observe_game_, mp::gamebrowser::selection_is_joinable(), mp::gamebrowser::selection_is_observable(), and mp::gamebrowser::set_game_items().
Referenced by lobby().
std::vector<bool> mp::lobby::game_vacant_slots_ [private] |
Definition at line 131 of file multiplayer_lobby.hpp.
std::vector<bool> mp::lobby::game_observers_ [private] |
Definition at line 132 of file multiplayer_lobby.hpp.
gui::button mp::lobby::observe_game_ [private] |
Definition at line 134 of file multiplayer_lobby.hpp.
Referenced by gamelist_updated(), hide_children(), layout_children(), and process_event().
gui::button mp::lobby::join_game_ [private] |
Definition at line 135 of file multiplayer_lobby.hpp.
Referenced by gamelist_updated(), hide_children(), layout_children(), and process_event().
gui::button mp::lobby::create_game_ [private] |
Definition at line 136 of file multiplayer_lobby.hpp.
Referenced by hide_children(), layout_children(), and process_event().
gui::button mp::lobby::skip_replay_ [private] |
Definition at line 137 of file multiplayer_lobby.hpp.
Referenced by hide_children(), layout_children(), lobby(), and process_event().
gui::button mp::lobby::game_preferences_ [private] |
Definition at line 139 of file multiplayer_lobby.hpp.
Referenced by hide_children(), layout_children(), and process_event().
gui::button mp::lobby::quit_game_ [private] |
Definition at line 141 of file multiplayer_lobby.hpp.
Referenced by hide_children(), layout_children(), and process_event().
int mp::lobby::last_selected_game_ [private] |
Definition at line 143 of file multiplayer_lobby.hpp.
Referenced by process_event(), and process_network_data().
lobby_sorter mp::lobby::sorter_ [private] |
Definition at line 145 of file multiplayer_lobby.hpp.
gamebrowser mp::lobby::games_menu_ [private] |
Definition at line 146 of file multiplayer_lobby.hpp.
Referenced by gamelist_updated(), hide_children(), layout_children(), and process_event().
std::map<std::string,std::string> mp::lobby::minimaps_ [private] |
Definition at line 148 of file multiplayer_lobby.hpp.
Generated by doxygen 1.5.5 on 23 May 2008 for The Battle for Wesnoth | Gna! | Forum | Wiki | CIA | devdocs |