This class represents the information a client has about another player. More...
#include <lobby_data.hpp>

Public Types | |
| enum | user_relation { FRIEND, ME, NEUTRAL, IGNORED } |
| enum | user_state { LOBBY, SEL_ROOM, GAME, SEL_GAME } |
Public Member Functions | |
| user_info (const config &c) | |
| void | update_state (int selected_game_id, const room_info *current_room=NULL) |
| void | update_relation () |
| bool | operator> (const user_info &b) const |
Public Attributes | |
| std::string | name |
| int | game_id |
| user_relation | relation |
| user_state | state |
| bool | registered |
| bool | observing |
This class represents the information a client has about another player.
Definition at line 83 of file lobby_data.hpp.
Definition at line 90 of file lobby_data.hpp.
Definition at line 91 of file lobby_data.hpp.
| user_info::user_info | ( | const config & | c | ) | [explicit] |
Definition at line 97 of file lobby_data.cpp.
References update_relation().

| bool user_info::operator> | ( | const user_info & | b | ) | const |
| void user_info::update_relation | ( | ) |
Definition at line 126 of file lobby_data.cpp.
References preferences::is_friend(), preferences::is_ignored(), preferences::login(), name, and relation.
Referenced by update_state(), and user_info().


| void user_info::update_state | ( | int | selected_game_id, | |
| const room_info * | current_room = NULL | |||
| ) |
Definition at line 108 of file lobby_data.cpp.
References game_id, room_info::is_member(), name, state, and update_relation().
Referenced by lobby_info::update_user_statuses().


Definition at line 96 of file lobby_data.hpp.
Referenced by gui2::tlobby_player_info::pre_show(), lobby_info::process_userlist(), update_state(), and gui2::tlobby_main::user_dialog_callback().
| std::string user_info::name |
Definition at line 95 of file lobby_data.hpp.
Referenced by gui2::tlobby_player_info::add_to_friends_button_callback(), gui2::tlobby_player_info::add_to_ignores_button_callback(), gui2::tlobby_main::chat_input_keypress_callback(), gui2::tlobby_player_info::check_status_button_callback(), gui2::tlobby_player_info::do_kick_ban(), user_sorter_relation_name::operator()(), user_sorter_name::operator()(), gui2::tlobby_player_info::pre_show(), lobby_info::process_userlist(), gui2::tlobby_player_info::remove_from_list_button_callback(), gui2::tlobby_main::update_playerlist(), update_relation(), update_state(), and gui2::tlobby_main::user_dialog_callback().
| bool user_info::observing |
Definition at line 100 of file lobby_data.hpp.
Referenced by gui2::tlobby_player_info::pre_show(), and gui2::tlobby_main::update_playerlist().
Definition at line 99 of file lobby_data.hpp.
Referenced by gui2::tlobby_main::update_playerlist().
Definition at line 97 of file lobby_data.hpp.
Referenced by gui2::tlobby_player_info::add_to_friends_button_callback(), gui2::tlobby_player_info::add_to_ignores_button_callback(), user_sorter_relation_name::operator()(), user_sorter_relation::operator()(), lobby_info::process_userlist(), gui2::tlobby_player_info::remove_from_list_button_callback(), gui2::tlobby_main::update_playerlist(), gui2::tlobby_player_info::update_relation(), and update_relation().
Definition at line 98 of file lobby_data.hpp.
Referenced by gui2::tlobby_main::update_playerlist(), and update_state().
| Generated by doxygen 1.7.1 on Fri May 25 2012 01:16:10 for The Battle for Wesnoth | Gna! | Forum | Wiki | CIA | devdocs |