This class represents the info a client has about a game on the server. More...
#include <lobby_data.hpp>

Public Types | |
| enum | game_display_status { CLEAN, NEW, UPDATED, DELETED } |
Public Member Functions | |
| game_info (const config &c, const config &game_config) | |
| bool | can_join () const |
| bool | can_observe () const |
| const char * | display_status_string () const |
Public Attributes | |
| surface | mini_map |
| int | id |
| std::string | map_data |
| std::string | name |
| std::string | scenario |
| bool | remote_scenario |
| std::string | map_info |
| std::string | map_size_info |
| std::string | era |
| std::string | era_short |
| std::string | gold |
| std::string | support |
| std::string | xp |
| std::string | vision |
| std::string | status |
| std::string | time_limit |
| size_t | vacant_slots |
| unsigned int | current_turn |
| bool | reloaded |
| bool | started |
| bool | fog |
| bool | shroud |
| bool | observers |
| bool | shuffle_sides |
| bool | use_map_settings |
| bool | verified |
| bool | password_required |
| bool | have_era |
| bool | has_friends |
| bool | has_ignored |
| game_display_status | display_status |
This class represents the info a client has about a game on the server.
Definition at line 106 of file lobby_data.hpp.
Definition at line 147 of file lobby_data.hpp.
Definition at line 159 of file lobby_data.cpp.
References _, _n, config::child(), current_turn, twml_exception::dev_message, era, era_short, ERR_CF, config::find_child(), fog, gamemap::h(), have_era, lexical_cast(), preferences::map(), map_data, map_info, map_size_info, game::error::message, read_map(), reloaded, remote_scenario, scenario, shroud, started, status, time_limit, utils::unicode_multiplication_sign, vacant_slots, verified, vgettext(), vision, and gamemap::w().

| bool game_info::can_join | ( | ) | const |
Definition at line 326 of file lobby_data.cpp.
References have_era, started, and vacant_slots.
Referenced by gui2::tlobby_main::adjust_game_row_contents(), gui2::tlobby_main::do_game_join(), gui2::tlobby_main::join_or_observe(), and gui2::tlobby_main::update_selected_game().

| bool game_info::can_observe | ( | ) | const |
Definition at line 331 of file lobby_data.cpp.
References have_era, preferences::is_authenticated(), and observers.
Referenced by gui2::tlobby_main::adjust_game_row_contents(), gui2::tlobby_main::do_game_join(), and gui2::tlobby_main::update_selected_game().


| const char * game_info::display_status_string | ( | ) | const |
Definition at line 336 of file lobby_data.cpp.
References CLEAN, DELETED, display_status, ERR_CF, NEW, and UPDATED.
| unsigned int game_info::current_turn |
Definition at line 132 of file lobby_data.hpp.
Referenced by gui2::tlobby_main::do_game_join(), and game_info().
Definition at line 148 of file lobby_data.hpp.
Referenced by display_status_string(), and gui2::tlobby_main::update_gamelist_diff().
| std::string game_info::era |
Definition at line 121 of file lobby_data.hpp.
Referenced by game_info(), and gui2::tlobby_main::make_game_row_data().
| std::string game_info::era_short |
Definition at line 122 of file lobby_data.hpp.
Referenced by game_info(), and gui2::tlobby_main::make_game_row_data().
| bool game_info::fog |
Definition at line 135 of file lobby_data.hpp.
Referenced by gui2::tlobby_main::adjust_game_row_contents(), game_info(), and gui2::tlobby_main::make_game_row_data().
| std::string game_info::gold |
Definition at line 124 of file lobby_data.hpp.
Referenced by gui2::tlobby_main::make_game_row_data().
Definition at line 144 of file lobby_data.hpp.
Referenced by lobby_info::process_userlist().
Definition at line 145 of file lobby_data.hpp.
Referenced by lobby_info::process_userlist().
| bool game_info::have_era |
Definition at line 142 of file lobby_data.hpp.
Referenced by gui2::tlobby_main::adjust_game_row_contents(), can_join(), can_observe(), game_info(), and gui2::tlobby_main::make_game_row_data().
| int game_info::id |
Definition at line 114 of file lobby_data.hpp.
Referenced by gui2::tlobby_main::do_game_join(), lobby_info::process_gamelist(), gui2::tlobby_main::update_gamelist(), gui2::tlobby_main::update_gamelist_diff(), and gui2::tlobby_main::update_selected_game().
| std::string game_info::map_data |
Definition at line 115 of file lobby_data.hpp.
Referenced by gui2::tlobby_main::adjust_game_row_contents(), and game_info().
| std::string game_info::map_info |
Definition at line 119 of file lobby_data.hpp.
Referenced by game_info(), gui2::tlobby_main::make_game_row_data(), and game_filter_general_string_part::match().
| std::string game_info::map_size_info |
Definition at line 120 of file lobby_data.hpp.
Referenced by game_info(), and gui2::tlobby_main::make_game_row_data().
Definition at line 113 of file lobby_data.hpp.
| std::string game_info::name |
Definition at line 116 of file lobby_data.hpp.
Referenced by gui2::tlobby_main::make_game_row_data(), game_filter_general_string_part::match(), and gui2::tlobby_player_info::pre_show().
| bool game_info::observers |
Definition at line 137 of file lobby_data.hpp.
Referenced by gui2::tlobby_main::adjust_game_row_contents(), can_observe(), and gui2::tlobby_main::make_game_row_data().
Definition at line 141 of file lobby_data.hpp.
Referenced by gui2::tlobby_main::adjust_game_row_contents(), and gui2::tlobby_main::do_game_join().
| bool game_info::reloaded |
Definition at line 133 of file lobby_data.hpp.
Referenced by gui2::tlobby_main::adjust_game_row_contents(), game_info(), and gui2::tlobby_main::make_game_row_data().
Definition at line 118 of file lobby_data.hpp.
Referenced by game_info().
| std::string game_info::scenario |
Definition at line 117 of file lobby_data.hpp.
Referenced by game_info(), and gui2::tlobby_main::make_game_row_data().
| bool game_info::shroud |
Definition at line 136 of file lobby_data.hpp.
Referenced by gui2::tlobby_main::adjust_game_row_contents(), game_info(), and gui2::tlobby_main::make_game_row_data().
Definition at line 138 of file lobby_data.hpp.
Referenced by gui2::tlobby_main::adjust_game_row_contents().
| bool game_info::started |
Definition at line 134 of file lobby_data.hpp.
Referenced by gui2::tlobby_main::adjust_game_row_contents(), can_join(), gui2::tlobby_main::do_game_join(), game_info(), and gui2::tlobby_main::make_game_row_data().
| std::string game_info::status |
Definition at line 128 of file lobby_data.hpp.
Referenced by game_info(), and gui2::tlobby_main::make_game_row_data().
| std::string game_info::support |
Definition at line 125 of file lobby_data.hpp.
| std::string game_info::time_limit |
Definition at line 129 of file lobby_data.hpp.
Referenced by gui2::tlobby_main::adjust_game_row_contents(), game_info(), and gui2::tlobby_main::make_game_row_data().
Definition at line 139 of file lobby_data.hpp.
Referenced by gui2::tlobby_main::adjust_game_row_contents().
| size_t game_info::vacant_slots |
Definition at line 130 of file lobby_data.hpp.
Referenced by can_join(), gui2::tlobby_main::game_filter_reload(), game_info(), and gui2::tlobby_main::make_game_row_data().
| bool game_info::verified |
Definition at line 140 of file lobby_data.hpp.
Referenced by game_info().
| std::string game_info::vision |
Definition at line 127 of file lobby_data.hpp.
Referenced by game_info(), and gui2::tlobby_main::make_game_row_data().
| std::string game_info::xp |
Definition at line 126 of file lobby_data.hpp.
Referenced by gui2::tlobby_main::make_game_row_data().
| Generated by doxygen 1.7.1 on Fri May 25 2012 01:12:36 for The Battle for Wesnoth | Gna! | Forum | Wiki | CIA | devdocs |