The Battle for Wesnoth  1.13.4+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Public Types | Public Member Functions | Public Attributes | List of all members
game_info Struct Reference

This class represents the info a client has about a game on the server. More...

#include <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 have_all_mods
 
bool has_friends
 
bool has_ignored
 
game_display_status display_status
 

Detailed Description

This class represents the info a client has about a game on the server.

Definition at line 136 of file data.hpp.

Member Enumeration Documentation

Enumerator
CLEAN 
NEW 
UPDATED 
DELETED 

Definition at line 178 of file data.hpp.

Constructor & Destructor Documentation

game_info::game_info ( const config c,
const config game_config 
)

Member Function Documentation

bool game_info::can_join ( ) const
bool game_info::can_observe ( ) const
const char * game_info::display_status_string ( ) const

Definition at line 369 of file data.cpp.

References CLEAN, DELETED, display_status, ERR_CF, NEW, and UPDATED.

Member Data Documentation

unsigned int game_info::current_turn

Definition at line 162 of file data.hpp.

Referenced by game_info().

game_display_status game_info::display_status
std::string game_info::era

Definition at line 151 of file data.hpp.

Referenced by game_info(), and gui2::tlobby_main::make_game_row_data().

std::string game_info::era_short

Definition at line 152 of file data.hpp.

Referenced by game_info(), and gui2::tlobby_main::make_game_row_data().

bool game_info::fog
std::string game_info::gold

Definition at line 154 of file data.hpp.

Referenced by gui2::tlobby_main::make_game_row_data().

bool game_info::has_friends

Definition at line 175 of file data.hpp.

Referenced by lobby_info::process_userlist().

bool game_info::has_ignored

Definition at line 176 of file data.hpp.

Referenced by lobby_info::process_userlist().

bool game_info::have_all_mods

Definition at line 173 of file data.hpp.

Referenced by can_join(), can_observe(), and game_info().

bool game_info::have_era
int game_info::id
std::string game_info::map_data

Definition at line 145 of file data.hpp.

Referenced by gui2::tlobby_main::adjust_game_row_contents(), and game_info().

std::string game_info::map_info
std::string game_info::map_size_info

Definition at line 150 of file data.hpp.

Referenced by game_info(), and gui2::tlobby_main::make_game_row_data().

surface game_info::mini_map

Definition at line 143 of file data.hpp.

std::string game_info::name
bool game_info::observers
bool game_info::password_required
bool game_info::reloaded
bool game_info::remote_scenario

Definition at line 148 of file data.hpp.

Referenced by game_info().

std::string game_info::scenario

Definition at line 147 of file data.hpp.

Referenced by game_info(), and gui2::tlobby_main::make_game_row_data().

bool game_info::shroud
bool game_info::shuffle_sides

Definition at line 168 of file data.hpp.

Referenced by gui2::tlobby_main::adjust_game_row_contents().

bool game_info::started
std::string game_info::status

Definition at line 158 of file data.hpp.

Referenced by game_info(), and gui2::tlobby_main::make_game_row_data().

std::string game_info::support

Definition at line 155 of file data.hpp.

std::string game_info::time_limit
bool game_info::use_map_settings

Definition at line 169 of file data.hpp.

Referenced by gui2::tlobby_main::adjust_game_row_contents().

size_t game_info::vacant_slots
bool game_info::verified

Definition at line 170 of file data.hpp.

Referenced by game_info().

std::string game_info::vision

Definition at line 157 of file data.hpp.

Referenced by game_info(), and gui2::tlobby_main::make_game_row_data().

std::string game_info::xp

Definition at line 156 of file data.hpp.

Referenced by gui2::tlobby_main::make_game_row_data().


The documentation for this struct was generated from the following files: