21 #include <boost/dynamic_bitset.hpp>
97 const std::vector<game_info*>&
games()
const
107 const std::vector<user_info>&
users()
const
168 void do_notify(
notify_mode mode,
const std::string& sender =
"",
const std::string& message =
"");
A config object defines a single node in a WML file, with access to child nodes.
This class represents the collective information the client has about the players and games on the se...
std::function< bool(bool)> game_filter_invert_
void add_game_filter(game_filter_func func)
Adds a new filter function to be considered when apply_game_filter is called.
void set_game_filter_invert(std::function< bool(bool)> value)
Sets whether the result of each game filter should be inverted.
std::function< bool(const game_info &)> game_filter_func
bool gamelist_initialized_
bool is_game_visible(const game_info &)
Returns whether the game would be visible after the game filters are applied.
void clear_game_filters()
Clears all game filter functions.
std::vector< user_info > & users()
bool process_gamelist_diff_impl(const config &data)
const config & gamelist() const
Returns the raw game list config data.
void process_gamelist(const config &data)
Process a full game list.
bool process_gamelist_diff(const config &data)
Process a gamelist diff.
void refresh_installed_addons_cache()
std::function< void()> begin_state_sync()
Updates the game pointer list and returns a second stage cleanup function to be called after any acti...
game_info * get_game_by_id(int id)
Returns info on a game with the given game ID.
bool gamelist_initialized() const
game_info_map games_by_id_
void make_games_vector()
Generates a new vector of game pointers from the ID/game map.
std::vector< user_info > users_
user_info * get_user(const std::string &name)
Returns info on the user with the given name, or nullptr if they don't eixst.
const std::vector< game_info * > & games() const
std::vector< game_info * > games_
boost::dynamic_bitset games_visibility_
std::map< int, game_info > game_info_map
void apply_game_filter()
Generates a new list of games that match the current filter functions and inversion setting.
const boost::dynamic_bitset & games_visibility() const
const std::vector< user_info > & users() const
std::vector< game_filter_func > game_filters_
std::vector< std::string > installed_addons_
Definitions for the interface to Wesnoth Markup Language (WML).
Main entry points of multiplayer mode.
void do_notify(notify_mode mode, const std::string &sender, const std::string &message)
This class represents the info a client has about a game on the server.
This class represents the information a client has about another player.