#include <multiplayer_lobby.hpp>


Definition at line 36 of file multiplayer_lobby.hpp.
Definition at line 45 of file multiplayer_lobby.cpp.
References gui::menu::set_numeric_keypress_selection().

| void mp::gamebrowser::draw | ( | ) | [virtual] |
Reimplemented from gui::menu.
Definition at line 102 of file multiplayer_lobby.cpp.
References util::scoped_resource< T *, delete_item >::assign(), gui::widget::bg_restore(), gui::widget::clip_rect(), gui::widget::dirty(), draw_contents(), gui::widget::hidden(), gui::widget::location(), gui::widget::set_dirty(), update_rect(), and gui::widget::video().

| void mp::gamebrowser::draw_contents | ( | ) | [virtual] |
Reimplemented from gui::menu.
Definition at line 117 of file multiplayer_lobby.cpp.
References _, gui::menu::style::draw_row(), font::draw_text(), games_, get_item_rect(), gui::scrollarea::inner_location(), margin_, font::NORMAL_COLOR, gui::menu::NORMAL_ROW, selected_, gui::menu::SELECTED_ROW, font::SIZE_NORMAL, gui::menu::style_, gui::widget::video(), and visible_range_.
Referenced by draw().


| void mp::gamebrowser::draw_row | ( | const size_t | row_index, | |
| const SDL_Rect & | rect, | |||
| ROW_TYPE | type | |||
| ) | [virtual] |
Reimplemented from gui::menu.
Definition at line 129 of file multiplayer_lobby.cpp.
References _, font::BAD_COLOR, CVideo::blit_surface(), font::DISABLED_COLOR, games_, image::get_image(), font::get_rendered_text(), mp::gamebrowser::game_item::gold, gold_icon_locator_, font::GOOD_COLOR, font::GRAY_COLOR, h_padding_, mp::gamebrowser::game_item::have_era, font::make_text_ellipsis(), mp::gamebrowser::game_item::map_info, margin_, mp::gamebrowser::game_item::mini_map, minimap_size_, mp::gamebrowser::game_item::name, no_observer_icon_locator_, font::NORMAL_COLOR, observer_icon_locator_, mp::gamebrowser::game_item::observers, mp::gamebrowser::game_item::reloaded, mp::gamebrowser::game_item::shuffle_sides, shuffle_sides_icon_locator_, font::SIZE_NORMAL, font::SIZE_PLUS, mp::gamebrowser::game_item::started, mp::gamebrowser::game_item::status, mp::gamebrowser::game_item::time_limit, time_limit_icon_locator_, mp::gamebrowser::game_item::use_map_settings, mp::gamebrowser::game_item::vacant_slots, mp::gamebrowser::game_item::verified, gui::widget::video(), mp::gamebrowser::game_item::vision, vision_icon_locator_, mp::gamebrowser::game_item::xp, xp_icon_locator_, and font::YELLOW_COLOR.

| bool mp::gamebrowser::empty | ( | ) | const [inline] |
Definition at line 101 of file multiplayer_lobby.hpp.
References games_.
Referenced by mp::lobby::process_event(), select_game(), selected(), selection_is_joinable(), selection_is_observable(), and set_game_items().

Definition at line 634 of file multiplayer_lobby.cpp.
References config::child_range(), preferences::fi_friends_in_game(), preferences::fi_text(), preferences::fi_vacant_slots(), preferences::filter_lobby(), mp::gamebrowser::game_item::id, preferences::is_friend(), mp::gamebrowser::game_item::map_info, mp::gamebrowser::game_item::name, utils::split(), utils::STRIP_SPACES, and mp::gamebrowser::game_item::vacant_slots.
Referenced by set_game_items().


| SDL_Rect mp::gamebrowser::get_item_rect | ( | size_t | index | ) | const |
Definition at line 89 of file multiplayer_lobby.cpp.
References gui2::create_rect(), gui::scrollarea::inner_location(), row_height(), and visible_range_.
Referenced by draw_contents(), and handle_event().


| void mp::gamebrowser::handle_event | ( | const SDL_Event & | event | ) | [virtual] |
Reimplemented from gui::menu.
Definition at line 297 of file multiplayer_lobby.cpp.
References gui::scrollarea::adjust_position(), DOUBLE_CLICK_EVENT, double_clicked_, gui::widget::focus(), games_, get_item_rect(), ignore_next_doubleclick_, gui::scrollarea::inner_location(), last_was_doubleclick_, point_in_rect(), selected_, selection_is_joinable(), selection_is_observable(), gui::widget::set_dirty(), gui::widget::set_focus(), and visible_range_.

| void mp::gamebrowser::reset_selection | ( | ) | [inline] |
Reimplemented from gui::menu.
Definition at line 107 of file multiplayer_lobby.hpp.
References double_clicked_.
Referenced by mp::lobby::process_event().

| unsigned int mp::gamebrowser::row_height | ( | ) | const [inline, protected] |
Definition at line 113 of file multiplayer_lobby.hpp.
References gui::menu::style::get_thickness(), item_height_, and gui::menu::style_.
Referenced by get_item_rect(), scroll(), set_game_items(), and set_inner_location().


| void mp::gamebrowser::scroll | ( | unsigned int | pos | ) | [virtual] |
Reimplemented from gui::menu.
Definition at line 80 of file multiplayer_lobby.cpp.
References games_, gui::scrollarea::inner_location(), row_height(), gui::widget::set_dirty(), and visible_range_.
Referenced by set_game_items(), and set_inner_location().


| void mp::gamebrowser::select_game | ( | const std::string & | id | ) |
Definition at line 621 of file multiplayer_lobby.cpp.
References gui::scrollarea::adjust_position(), empty(), games_, selected_, and gui::widget::set_dirty().
Referenced by mp::lobby::process_event().


| bool mp::gamebrowser::selected | ( | ) | const [inline] |
Definition at line 106 of file multiplayer_lobby.hpp.
References double_clicked_, and empty().
Referenced by mp::lobby::process_event().


| game_item mp::gamebrowser::selected_game | ( | ) | [inline] |
Definition at line 109 of file multiplayer_lobby.hpp.
References games_, and selected_.
Referenced by mp::lobby::process_event(), and set_game_items().

| int mp::gamebrowser::selection | ( | ) | const [inline] |
Reimplemented from gui::menu.
Definition at line 108 of file multiplayer_lobby.hpp.
References selected_.
Referenced by mp::lobby::process_event().

| bool mp::gamebrowser::selection_is_joinable | ( | ) | const [inline] |
Definition at line 102 of file multiplayer_lobby.hpp.
References empty(), games_, and selected_.
Referenced by mp::lobby::gamelist_updated(), handle_event(), and mp::lobby::process_event().


| bool mp::gamebrowser::selection_is_observable | ( | ) | const [inline] |
Definition at line 105 of file multiplayer_lobby.hpp.
References empty(), games_, preferences::is_authenticated(), and selected_.
Referenced by mp::lobby::gamelist_updated(), handle_event(), and mp::lobby::process_event().


Definition at line 407 of file multiplayer_lobby.cpp.
References _, _n, config::attribute_range(), config::child(), config::child_range(), twml_exception::dev_message, empty(), ERR_CF, preferences::fi_invert(), config::find_child(), game_matches_filter(), games_, gui::scrollarea::get_max_position(), gui::scrollarea::get_position(), image::getMinimap(), h, gui::scrollarea::has_scrollbar(), gui::scrollarea::inner_location(), item_height_, lexical_cast(), preferences::map(), mp::minimap_cache_item::map_data, map_hashes_, mp::minimap_cache_item::map_info_size, game::error::message, mp::minimap_cache_item::mini_map, minimap_size_, read_map(), row_height(), scroll(), selected_, selected_game(), gui::widget::set_dirty(), gui::scrollarea::set_full_size(), gui::scrollarea::set_position(), gui::scrollarea::set_shown_size(), str_cast(), utils::unicode_multiplication_sign, vgettext(), and visible_range_.
Referenced by mp::lobby::gamelist_updated().


| void mp::gamebrowser::set_inner_location | ( | const SDL_Rect & | rect | ) | [virtual] |
Reimplemented from gui::menu.
Definition at line 72 of file multiplayer_lobby.cpp.
References gui::widget::bg_register(), games_, gui::scrollarea::get_position(), row_height(), scroll(), gui::scrollarea::set_full_size(), and gui::scrollarea::set_shown_size().

| void mp::gamebrowser::set_item_height | ( | unsigned int | height | ) |
bool mp::gamebrowser::double_clicked_ [private] |
Reimplemented from gui::menu.
Definition at line 135 of file multiplayer_lobby.hpp.
Referenced by handle_event(), reset_selection(), and selected().
std::vector<game_item> mp::gamebrowser::games_ [private] |
Definition at line 132 of file multiplayer_lobby.hpp.
Referenced by draw_contents(), draw_row(), empty(), handle_event(), scroll(), select_game(), selected_game(), selection_is_joinable(), selection_is_observable(), set_game_items(), and set_inner_location().
Definition at line 115 of file multiplayer_lobby.hpp.
Referenced by draw_row().
int mp::gamebrowser::h_padding_ [private] |
Definition at line 128 of file multiplayer_lobby.hpp.
Referenced by draw_row().
int mp::gamebrowser::header_height_ [private] |
Definition at line 129 of file multiplayer_lobby.hpp.
bool mp::gamebrowser::ignore_next_doubleclick_ [private] |
Reimplemented from gui::menu.
Definition at line 136 of file multiplayer_lobby.hpp.
Referenced by handle_event().
unsigned int mp::gamebrowser::item_height_ [private] |
Reimplemented from gui::menu.
Definition at line 125 of file multiplayer_lobby.hpp.
Referenced by row_height(), and set_game_items().
bool mp::gamebrowser::last_was_doubleclick_ [private] |
Reimplemented from gui::menu.
Definition at line 137 of file multiplayer_lobby.hpp.
Referenced by handle_event().
const config& mp::gamebrowser::map_hashes_ [private] |
Definition at line 123 of file multiplayer_lobby.hpp.
Referenced by set_game_items().
int mp::gamebrowser::margin_ [private] |
Definition at line 126 of file multiplayer_lobby.hpp.
Referenced by draw_contents(), and draw_row().
int mp::gamebrowser::minimap_size_ [private] |
Definition at line 127 of file multiplayer_lobby.hpp.
Referenced by draw_row(), and set_game_items().
Definition at line 120 of file multiplayer_lobby.hpp.
Referenced by draw_row().
Definition at line 119 of file multiplayer_lobby.hpp.
Referenced by draw_row().
std::vector<size_t> mp::gamebrowser::redraw_items_ [private] |
Definition at line 133 of file multiplayer_lobby.hpp.
size_t mp::gamebrowser::selected_ [private] |
Reimplemented from gui::menu.
Definition at line 130 of file multiplayer_lobby.hpp.
Referenced by draw_contents(), handle_event(), select_game(), selected_game(), selection(), selection_is_joinable(), selection_is_observable(), and set_game_items().
Definition at line 121 of file multiplayer_lobby.hpp.
Referenced by draw_row().
Definition at line 118 of file multiplayer_lobby.hpp.
Referenced by draw_row().
std::pair<size_t, size_t> mp::gamebrowser::visible_range_ [private] |
Definition at line 131 of file multiplayer_lobby.hpp.
Referenced by draw_contents(), get_item_rect(), handle_event(), scroll(), and set_game_items().
Definition at line 117 of file multiplayer_lobby.hpp.
Referenced by draw_row().
std::vector<int> mp::gamebrowser::widths_ [private] |
Definition at line 134 of file multiplayer_lobby.hpp.
Definition at line 116 of file multiplayer_lobby.hpp.
Referenced by draw_row().
| Generated by doxygen 1.7.1 on Thu May 24 2012 01:24:51 for The Battle for Wesnoth | Gna! | Forum | Wiki | CIA | devdocs |