Cockatrice 2025-11-30-Development-2.11.0-beta.38
A cross-platform virtual tabletop for multiplayer card games
Loading...
Searching...
No Matches
Server_AbstractUserInterface Class Referenceabstract

#include <server_abstractuserinterface.h>

Inheritance diagram for Server_AbstractUserInterface:
[legend]
Collaboration diagram for Server_AbstractUserInterface:
[legend]

Public Member Functions

 Server_AbstractUserInterface (Server *_server)
 Server_AbstractUserInterface (Server *_server, const ServerInfo_User_Container &other)
 ~Server_AbstractUserInterface () override
virtual int getLastCommandTime () const =0
virtual bool addSaidMessageSize (int size)=0
void playerRemovedFromGame (Server_Game *game)
void playerAddedToGame (int gameId, int roomId, int playerId)
void joinPersistentGames (ResponseContainer &rc)
QMap< int, QPair< int, int > > getGames () const
virtual void sendProtocolItem (const Response &item)=0
virtual void sendProtocolItem (const SessionEvent &item)=0
virtual void sendProtocolItem (const GameEventContainer &item)=0
virtual void sendProtocolItem (const RoomEvent &item)=0
void sendProtocolItemByType (ServerMessage::MessageType type, const ::google::protobuf::Message &item)
void sendResponseContainer (const ResponseContainer &responseContainer, Response::ResponseCode responseCode)
Public Member Functions inherited from ServerInfo_User_Container
 ServerInfo_User_Container (ServerInfo_User *_userInfo=nullptr)
 ServerInfo_User_Container (const ServerInfo_User &_userInfo)
 ServerInfo_User_Container (const ServerInfo_User_Container &other)
ServerInfo_User_Containeroperator= (const ServerInfo_User_Container &other)=default
virtual ~ServerInfo_User_Container ()
ServerInfo_User * getUserInfo () const
void setUserInfo (const ServerInfo_User &_userInfo)
ServerInfo_User & copyUserInfo (ServerInfo_User &result, bool complete, bool internalInfo=false, bool sessionInfo=false) const
ServerInfo_User copyUserInfo (bool complete, bool internalInfo=false, bool sessionInfo=false) const

Static Public Member Functions

static SessionEvent * prepareSessionEvent (const ::google::protobuf::Message &sessionEvent)

Protected Attributes

Serverserver
Protected Attributes inherited from ServerInfo_User_Container
ServerInfo_User * userInfo

Private Attributes

QMutex gameListMutex
QMap< int, QPair< int, int > > games

Constructor & Destructor Documentation

◆ Server_AbstractUserInterface() [1/2]

Server_AbstractUserInterface::Server_AbstractUserInterface ( Server * _server)
inlineexplicit
Here is the caller graph for this function:

◆ Server_AbstractUserInterface() [2/2]

Server_AbstractUserInterface::Server_AbstractUserInterface ( Server * _server,
const ServerInfo_User_Container & other )
inline
Here is the call graph for this function:

◆ ~Server_AbstractUserInterface()

Server_AbstractUserInterface::~Server_AbstractUserInterface ( )
inlineoverride

Member Function Documentation

◆ addSaidMessageSize()

virtual bool Server_AbstractUserInterface::addSaidMessageSize ( int size)
pure virtual

◆ getGames()

QMap< int, QPair< int, int > > Server_AbstractUserInterface::getGames ( ) const
inline
Here is the caller graph for this function:

◆ getLastCommandTime()

virtual int Server_AbstractUserInterface::getLastCommandTime ( ) const
pure virtual

◆ joinPersistentGames()

void Server_AbstractUserInterface::joinPersistentGames ( ResponseContainer & rc)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ playerAddedToGame()

void Server_AbstractUserInterface::playerAddedToGame ( int gameId,
int roomId,
int playerId )
Here is the caller graph for this function:

◆ playerRemovedFromGame()

void Server_AbstractUserInterface::playerRemovedFromGame ( Server_Game * game)
Here is the call graph for this function:

◆ prepareSessionEvent()

SessionEvent * Server_AbstractUserInterface::prepareSessionEvent ( const ::google::protobuf::Message & sessionEvent)
static
Here is the caller graph for this function:

◆ sendProtocolItem() [1/4]

virtual void Server_AbstractUserInterface::sendProtocolItem ( const GameEventContainer & item)
pure virtual

◆ sendProtocolItem() [2/4]

virtual void Server_AbstractUserInterface::sendProtocolItem ( const Response & item)
pure virtual

Implemented in Server_ProtocolHandler, and Server_RemoteUserInterface.

Here is the caller graph for this function:

◆ sendProtocolItem() [3/4]

virtual void Server_AbstractUserInterface::sendProtocolItem ( const RoomEvent & item)
pure virtual

◆ sendProtocolItem() [4/4]

virtual void Server_AbstractUserInterface::sendProtocolItem ( const SessionEvent & item)
pure virtual

◆ sendProtocolItemByType()

void Server_AbstractUserInterface::sendProtocolItemByType ( ServerMessage::MessageType type,
const ::google::protobuf::Message & item )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ sendResponseContainer()

void Server_AbstractUserInterface::sendResponseContainer ( const ResponseContainer & responseContainer,
Response::ResponseCode responseCode )
Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ gameListMutex

QMutex Server_AbstractUserInterface::gameListMutex
mutableprivate

◆ games

QMap<int, QPair<int, int> > Server_AbstractUserInterface::games
private

◆ server

Server* Server_AbstractUserInterface::server
protected

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