15 #ifndef INC_LOBBY_INFO
16 #define INC_LOBBY_INFO
65 void sort_users(
bool by_name,
bool by_relation);
79 const std::vector<room_info>&
rooms()
const
83 const std::vector<game_info*>&
games()
const
92 const std::vector<user_info>&
users()
const
void close_room(const std::string &name)
bool has_room(const std::string &name) const
This class represents the information a client has about a room.
std::map< std::string, chat_log > whispers_
this class memorizes a chat session.
lobby_info(const config &game_config, twesnothd_connection &)
game_info * get_game_by_id(int id)
std::vector< bool > games_visibility_
const std::vector< bool > & games_visibility() const
game_info_map games_by_id_
std::vector< game_info * > games_filtered_
This class represents the collective information the client has about the players and games on the se...
void open_room(const std::string &name)
const std::vector< room_info > & rooms() const
game_filter_and_stack game_filter_
const std::vector< game_info * > & games_filtered() const
GLint GLenum GLsizei GLint GLsizei const GLvoid * data
Definitions for the interface to Wesnoth Markup Language (WML).
This class represents the information a client has about another player.
void set_game_filter_invert(bool value)
std::map< int, game_info * > game_info_map
const config & gamelist() const
A class that represents a TCP/IP connection to the wesnothd server.
bool gamelist_initialized_
std::vector< game_info * > games_
GLsizei const GLfloat * value
void update_user_statuses(int game_id, const room_info *room)
const config & game_config_
void sync_games_display_status()
chat_log & get_whisper_log(const std::string &name)
Game configuration data as global variables.
twesnothd_connection & wesnothd_connection_
const std::vector< user_info > & users() const
GLuint const GLchar * name
void add_game_filter(game_filter_base *f)
void sort_users(bool by_name, bool by_relation)
This class represents the info a client has about a game on the server.
void process_gamelist(const config &data)
Process a full gamelist.
std::vector< user_info * > users_sorted_
std::vector< room_info > rooms_
std::vector< user_info > users_
A config object defines a single node in a WML file, with access to child nodes.
const std::vector< game_info * > & games() const
GLsizei const GLcharARB ** string
room_info * get_room(const std::string &name)
const std::vector< user_info * > & users_sorted() const
bool process_gamelist_diff(const config &data)
Process a gamelist diff.
user_info & get_user(const std::string &name)