Public Types | Public Member Functions | Public Attributes

game_info Struct Reference

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

#include <lobby_data.hpp>

Collaboration diagram for game_info:
Collaboration graph
[legend]

List of all members.

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

Detailed Description

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

Definition at line 106 of file lobby_data.hpp.


Member Enumeration Documentation

Enumerator:
CLEAN 
NEW 
UPDATED 
DELETED 

Definition at line 147 of file lobby_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

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().

Here is the call graph for this function:

Here is the caller graph for this function:

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.


Member Data Documentation

Definition at line 132 of file lobby_data.hpp.

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

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().

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().

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 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 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().

Definition at line 138 of file lobby_data.hpp.

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

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 139 of file lobby_data.hpp.

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

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().


The documentation for this struct was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated by doxygen 1.7.1 on Fri May 25 2012 01:12:36 for The Battle for Wesnoth
Gna! | Forum | Wiki | CIA | devdocs