17 #ifndef MULTIPLAYER_LOBBY_HPP_INCLUDED
18 #define MULTIPLAYER_LOBBY_HPP_INCLUDED
250 : join(false), observe(false), create(false), quit(false)
254 : join(j), observe(o), create(c), quit(q)
void populate_game_item_campaign_or_scenario_info(game_item &, const config &, const config &, bool &)
image::locator time_limit_icon_locator_
virtual void process_event()
image::locator shuffle_sides_icon_locator_
unsigned int row_height() const
bool plugin_event_helper(const process_event_data &)
std::string search_string_
std::vector< bool > game_observers_
void set_inner_location(const SDL_Rect &rect)
std::vector< size_t > redraw_items_
void set_item_height(unsigned int height)
GLuint GLuint GLsizei GLenum type
void populate_game_item(game_item &, const config &, const config &, const std::vector< std::string > &)
std::vector< game_item > games_
gui::button friends_in_game_
std::vector< bool > game_vacant_slots_
bool ignore_next_doubleclick_
bool selection_in_observable_state() const
void draw_row(const size_t row_index, const SDL_Rect &rect, ROW_TYPE type)
gui::button observe_game_
const std::vector< required_addon > * selection_addon_requirements() const
GLint GLenum GLsizei GLint GLsizei const GLvoid * data
void process_event_impl(const process_event_data &)
game_item selected_game()
lobby_sorter(const config &cfg)
std::vector< required_addon > addons
GLdouble GLdouble GLdouble GLdouble q
This module controls the multiplayer lobby.
bool selection_is_joinable() const
void set_game_items(const config &cfg, const config &game_config, const std::vector< std::string > &installed_addons)
unsigned int current_turn
A class that represents a TCP/IP connection to the wesnothd server.
image::locator xp_icon_locator_
bool last_was_doubleclick_
const std::vector< std::string > & installed_addons_
std::string era_and_mod_info
virtual void hide_children(bool hide=true)
Hides or shows all gui::widget children of this widget.
process_event_data(bool j, bool o, bool c, bool q)
bool selection_is_observable() const
std::vector< std::string > installed_addons()
Retrieves the names of all installed add-ons.
unsigned int item_height_
void handle_event(const SDL_Event &event)
void scroll(unsigned int pos)
bool selection_needs_content() const
image::locator vision_icon_locator_
gui::button apply_filter_
bool less(int column, const gui::menu::item &row1, const gui::menu::item &row2) const
GLenum GLenum GLvoid GLvoid * column
std::map< std::string, std::string > minimaps_
gui::button game_preferences_
gui::combo replay_options_
lobby(CVideo &v, twesnothd_connection *wesnothd_connection, const config &cfg, chat &c, config &gamelist, const std::vector< std::string > &installed_addons)
image::locator map_size_icon_locator_
std::pair< size_t, size_t > visible_range_
std::string map_info_size
Game configuration data as global variables.
ADDON_REQ selection_addon_outcome() const
config & gamelist()
Returns the current gamelist.
bool selection_needs_addons() const
std::vector< int > widths_
gui::button vacant_slots_
void populate_game_item_era_info(game_item &, const config &, const config &, bool &)
void populate_game_item_map_info(game_item &, const config &, const config &, bool &)
GLint GLint GLint GLint GLint GLint GLsizei GLsizei height
GLuint const GLchar * name
gui::button invert_filter_
gamebrowser(CVideo &video, const config &map_hashes)
image::locator observer_icon_locator_
SDL_Rect get_item_rect(size_t index) const
int h_padding_image_to_text_
image::locator gold_icon_locator_
bool column_sortable(int column) const
virtual void process_network_data(const config &data)
Processes any pending network data.
image::locator no_observer_icon_locator_
bool game_matches_filter(const game_item &i, const config &cfg)
this class memorizes a chat session.
bool selection_in_joinable_state() const
void select_game(const std::string &id)
void populate_game_item_addons_installed(game_item &, const config &, const std::vector< std::string > &)
A config object defines a single node in a WML file, with access to child nodes.
bool registered_users_only
virtual void gamelist_updated(bool silent=true)
Called each time the gamelist_ variable is updated.
GLsizei const GLcharARB ** string
const config & map_hashes_
virtual void layout_children(const SDL_Rect &rect)
Lays the children out.
a base class for the different multiplayer base dialogs: game list, create game, wait game...
void populate_game_item_mod_info(game_item &, const config &, const config &, bool &)
gui::textbox filter_text_