The Battle for Wesnoth  1.13.4+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Public Member Functions | Static Public Member Functions | Private Attributes | List of all members
wesnothd::player_record Class Reference

#include <player_connection.hpp>

Public Member Functions

const socket_ptr socket () const
 
playerinfo () const
 
const std::stringname () const
 
const boost::shared_ptr< gameget_game () const
 
boost::shared_ptr< game > & get_game ()
 
int game_id () const
 
 player_record (const socket_ptr socket, const player &player)
 

Static Public Member Functions

static void set_game (player_record &, boost::shared_ptr< game >)
 
static void enter_lobby (player_record &)
 

Private Attributes

const socket_ptr socket_
 
player player_
 
boost::shared_ptr< gamegame_
 

Detailed Description

Definition at line 39 of file player_connection.hpp.

Constructor & Destructor Documentation

wesnothd::player_record::player_record ( const socket_ptr  socket,
const player player 
)
inline

Definition at line 56 of file player_connection.hpp.

Member Function Documentation

void wesnothd::player_record::enter_lobby ( player_record record)
static
int wesnothd::player_record::game_id ( ) const

Definition at line 31 of file player_connection.cpp.

References game_.

const boost::shared_ptr< game > wesnothd::player_record::get_game ( ) const

Definition at line 21 of file player_connection.cpp.

References game_.

Referenced by wesnothd::server::create_game().

boost::shared_ptr< game > & wesnothd::player_record::get_game ( )

Definition at line 26 of file player_connection.cpp.

References game_.

player& wesnothd::player_record::info ( ) const
inline

Definition at line 48 of file player_connection.hpp.

References player_.

Referenced by wesnothd::server::create_game().

const std::string& wesnothd::player_record::name ( ) const
inline

Definition at line 49 of file player_connection.hpp.

References wesnothd::player::name().

Referenced by wesnothd::player_status().

void wesnothd::player_record::set_game ( player_record record,
boost::shared_ptr< game new_game 
)
static

Definition at line 36 of file player_connection.cpp.

References game_.

Referenced by wesnothd::server::handle_join_game().

const socket_ptr wesnothd::player_record::socket ( ) const
inline

Definition at line 47 of file player_connection.hpp.

References socket_.

Referenced by wesnothd::server::create_game(), and wesnothd::player_status().

Member Data Documentation

boost::shared_ptr<game> wesnothd::player_record::game_
private

Definition at line 43 of file player_connection.hpp.

Referenced by enter_lobby(), game_id(), get_game(), and set_game().

player wesnothd::player_record::player_
mutableprivate

Definition at line 42 of file player_connection.hpp.

Referenced by info().

const socket_ptr wesnothd::player_record::socket_
private

Definition at line 41 of file player_connection.hpp.

Referenced by socket().


The documentation for this class was generated from the following files: