#include <player_connection.hpp>
Public Member Functions | |
template<class SocketPtr > | |
player_record (const SocketPtr socket, const player &player) | |
const any_socket_ptr | socket () const |
std::string | client_ip () const |
player & | info () const |
const std::string & | name () const |
const std::shared_ptr< game > | get_game () const |
std::shared_ptr< game > & | get_game () |
int | game_id () const |
void | set_game (std::shared_ptr< game > new_game) |
void | enter_lobby () |
Public Attributes | |
const std::chrono::steady_clock::time_point | login_time |
Private Attributes | |
const any_socket_ptr | socket_ |
player | player_ |
std::shared_ptr< game > | game_ |
std::string | ip_address |
Definition at line 30 of file player_connection.hpp.
|
inline |
Definition at line 34 of file player_connection.hpp.
|
inline |
Definition at line 48 of file player_connection.hpp.
References ip_address.
void wesnothd::player_record::enter_lobby | ( | ) |
Definition at line 42 of file player_connection.cpp.
References game_.
Referenced by wesnothd::server::delete_game(), and wesnothd::server::handle_player_in_game().
int wesnothd::player_record::game_id | ( | ) | const |
Definition at line 32 of file player_connection.cpp.
References game_.
std::shared_ptr< game > & wesnothd::player_record::get_game | ( | ) |
Definition at line 27 of file player_connection.cpp.
References game_.
const std::shared_ptr< game > wesnothd::player_record::get_game | ( | ) | const |
Definition at line 22 of file player_connection.cpp.
References game_.
Referenced by wesnothd::server::handle_create_game().
|
inline |
Definition at line 53 of file player_connection.hpp.
References player_.
|
inline |
Definition at line 58 of file player_connection.hpp.
References wesnothd::player::name(), and player_.
void wesnothd::player_record::set_game | ( | std::shared_ptr< game > | new_game | ) |
Definition at line 37 of file player_connection.cpp.
References game_.
Referenced by wesnothd::server::handle_join_game().
|
inline |
Definition at line 43 of file player_connection.hpp.
References socket_.
|
private |
Definition at line 78 of file player_connection.hpp.
Referenced by enter_lobby(), game_id(), get_game(), and set_game().
|
private |
Definition at line 79 of file player_connection.hpp.
Referenced by client_ip().
const std::chrono::steady_clock::time_point wesnothd::player_record::login_time |
Definition at line 73 of file player_connection.hpp.
|
mutableprivate |
Definition at line 77 of file player_connection.hpp.
|
private |
Definition at line 76 of file player_connection.hpp.
Referenced by socket().