Public Types | Public Member Functions | Public Attributes

user_info Struct Reference

This class represents the information a client has about another player. More...

#include <lobby_data.hpp>

Collaboration diagram for user_info:
Collaboration graph
[legend]

List of all members.

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

Detailed Description

This class represents the information a client has about another player.

Definition at line 83 of file lobby_data.hpp.


Member Enumeration Documentation

Enumerator:
FRIEND 
ME 
NEUTRAL 
IGNORED 

Definition at line 90 of file lobby_data.hpp.

Enumerator:
LOBBY 
SEL_ROOM 
GAME 
SEL_GAME 

Definition at line 91 of file lobby_data.hpp.


Constructor & Destructor Documentation

user_info::user_info ( const config c  )  [explicit]

Definition at line 97 of file lobby_data.cpp.

References update_relation().

Here is the call graph for this function:


Member Function Documentation

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().

Here is the call graph for this function:

Here is the caller graph for this function:

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().

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

std::string user_info::name

Definition at line 99 of file lobby_data.hpp.

Referenced by gui2::tlobby_main::update_playerlist().

Definition at line 98 of file lobby_data.hpp.

Referenced by gui2::tlobby_main::update_playerlist(), and update_state().


The documentation for this struct was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated by doxygen 1.7.1 on Fri May 25 2012 01:16:10 for The Battle for Wesnoth
Gna! | Forum | Wiki | CIA | devdocs