NetMauMau  0.24.0
Client API
Public Types | List of all members
NetMauMau::Client::Connection Class Reference

#include <clientconnection.h>

Detailed Description

Handles the connection from the client to a server.

Inheritance diagram for NetMauMau::Client::Connection:
[legend]

Public Types

typedef std::map< std::string,
std::string > 
CAPABILITIES
 Key/value map of the server capabilities. More...
 
typedef std::vector< PLAYERINFOPLAYERINFOS
 List of currently registered player infos.
 
typedef std::vector< std::string > PLAYERLIST
 List of currently registered player names.
 
typedef std::vector< SCORESCORES
 a vector of scores
 

Class Documentation

struct NetMauMau::Client::Connection::SCORE
Class Members
string name name of the player
long long int score score of the player
struct NetMauMau::Client::Connection::SCORE_TYPE
Class Members
_scoreType The type of scores enumeration.

Member Typedef Documentation

typedef std::map<std::string, std::string> NetMauMau::Common::AbstractConnection::CAPABILITIES
inherited

Key/value map of the server capabilities.

Key Value
ACEROUND false if no ace rounds are enabled, else A, Q or K for the rank
AI_NAME name of the first AI player
AI_OPPONENT true if the AI opponent is enabled
CUR_PLAYERS amount of current players joined
DIRCHANGE true if direction changes are allowed, false otherwise
HAVE_SCORES true if the server can provide scores, false otherwise
INITIAL_CARDS if played with an amount of initial cards not equal to 5 contains the number of cards
MAX_PLAYERS amount of players needed to start the game
MIN_VERSION minimum version of client that can connect
SERVER_VERSION version of the server
SERVER_VERSION_REL version of the server (including release)
TALON if played with more than 1 card deck contains the number of cards
ULTIMATE true if running in ultimate mode, false otherwise
WEBSERVER_URL if the webserver is started it contains the URL of it