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

#include <server_spectator.h>

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

Public Member Functions

 Server_Spectator (Server_Game *_game, int _playerId, const ServerInfo_User &_userInfo, bool _judge, Server_AbstractUserInterface *_handler)
Public Member Functions inherited from Server_AbstractParticipant
 Server_AbstractParticipant (Server_Game *_game, int _playerId, const ServerInfo_User &_userInfo, bool _judge, Server_AbstractUserInterface *_handler)
 ~Server_AbstractParticipant () override
virtual void prepareDestroy ()
void removeFromGame ()
Server_AbstractUserInterfacegetUserInterface () const
void setUserInterface (Server_AbstractUserInterface *_userInterface)
void disconnectClient ()
int getPlayerId () const
bool getSpectator () const
bool getJudge () const
Server_GamegetGame () const
int getPingTime () const
bool updatePingTime ()
void getProperties (ServerInfo_PlayerProperties &result, bool withUserInfo)
virtual Response::ResponseCode cmdLeaveGame (const Command_LeaveGame &cmd, ResponseContainer &rc, GameEventStorage &ges)
virtual Response::ResponseCode cmdKickFromGame (const Command_KickFromGame &cmd, ResponseContainer &rc, GameEventStorage &ges)
virtual Response::ResponseCode cmdConcede (const Command_Concede &cmd, ResponseContainer &rc, GameEventStorage &ges)
virtual Response::ResponseCode cmdUnconcede (const Command_Unconcede &cmd, ResponseContainer &rc, GameEventStorage &ges)
virtual Response::ResponseCode cmdJudge (const Command_Judge &cmd, ResponseContainer &rc, GameEventStorage &ges)
virtual Response::ResponseCode cmdReadyStart (const Command_ReadyStart &cmd, ResponseContainer &rc, GameEventStorage &ges)
virtual Response::ResponseCode cmdDeckSelect (const Command_DeckSelect &cmd, ResponseContainer &rc, GameEventStorage &ges)
virtual Response::ResponseCode cmdSetSideboardPlan (const Command_SetSideboardPlan &cmd, ResponseContainer &rc, GameEventStorage &ges)
virtual Response::ResponseCode cmdSetSideboardLock (const Command_SetSideboardLock &cmd, ResponseContainer &rc, GameEventStorage &ges)
virtual Response::ResponseCode cmdGameSay (const Command_GameSay &cmd, ResponseContainer &rc, GameEventStorage &ges)
virtual Response::ResponseCode cmdShuffle (const Command_Shuffle &cmd, ResponseContainer &rc, GameEventStorage &ges)
virtual Response::ResponseCode cmdMulligan (const Command_Mulligan &cmd, ResponseContainer &rc, GameEventStorage &ges)
virtual Response::ResponseCode cmdRollDie (const Command_RollDie &cmd, ResponseContainer &rc, GameEventStorage &ges) const
virtual Response::ResponseCode cmdDrawCards (const Command_DrawCards &cmd, ResponseContainer &rc, GameEventStorage &ges)
virtual Response::ResponseCode cmdUndoDraw (const Command_UndoDraw &cmd, ResponseContainer &rc, GameEventStorage &ges)
virtual Response::ResponseCode cmdMoveCard (const Command_MoveCard &cmd, ResponseContainer &rc, GameEventStorage &ges)
virtual Response::ResponseCode cmdFlipCard (const Command_FlipCard &cmd, ResponseContainer &rc, GameEventStorage &ges)
virtual Response::ResponseCode cmdAttachCard (const Command_AttachCard &cmd, ResponseContainer &rc, GameEventStorage &ges)
virtual Response::ResponseCode cmdCreateToken (const Command_CreateToken &cmd, ResponseContainer &rc, GameEventStorage &ges)
virtual Response::ResponseCode cmdCreateArrow (const Command_CreateArrow &cmd, ResponseContainer &rc, GameEventStorage &ges)
virtual Response::ResponseCode cmdDeleteArrow (const Command_DeleteArrow &cmd, ResponseContainer &rc, GameEventStorage &ges)
virtual Response::ResponseCode cmdSetCardAttr (const Command_SetCardAttr &cmd, ResponseContainer &rc, GameEventStorage &ges)
virtual Response::ResponseCode cmdSetCardCounter (const Command_SetCardCounter &cmd, ResponseContainer &rc, GameEventStorage &ges)
virtual Response::ResponseCode cmdIncCardCounter (const Command_IncCardCounter &cmd, ResponseContainer &rc, GameEventStorage &ges)
virtual Response::ResponseCode cmdIncCounter (const Command_IncCounter &cmd, ResponseContainer &rc, GameEventStorage &ges)
virtual Response::ResponseCode cmdCreateCounter (const Command_CreateCounter &cmd, ResponseContainer &rc, GameEventStorage &ges)
virtual Response::ResponseCode cmdSetCounter (const Command_SetCounter &cmd, ResponseContainer &rc, GameEventStorage &ges)
virtual Response::ResponseCode cmdDelCounter (const Command_DelCounter &cmd, ResponseContainer &rc, GameEventStorage &ges)
virtual Response::ResponseCode cmdNextTurn (const Command_NextTurn &cmd, ResponseContainer &rc, GameEventStorage &ges)
virtual Response::ResponseCode cmdSetActivePhase (const Command_SetActivePhase &cmd, ResponseContainer &rc, GameEventStorage &ges)
virtual Response::ResponseCode cmdDumpZone (const Command_DumpZone &cmd, ResponseContainer &rc, GameEventStorage &ges)
virtual Response::ResponseCode cmdRevealCards (const Command_RevealCards &cmd, ResponseContainer &rc, GameEventStorage &ges)
virtual Response::ResponseCode cmdReverseTurn (const Command_ReverseTurn &, ResponseContainer &, GameEventStorage &ges)
virtual Response::ResponseCode cmdChangeZoneProperties (const Command_ChangeZoneProperties &cmd, ResponseContainer &rc, GameEventStorage &ges)
Response::ResponseCode processGameCommand (const GameCommand &command, ResponseContainer &rc, GameEventStorage &ges)
void sendGameEvent (const GameEventContainer &event)
virtual void getInfo (ServerInfo_Player *info, Server_AbstractParticipant *recipient, bool omniscient, bool withUserInfo)
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

Additional Inherited Members

Protected Member Functions inherited from Server_AbstractParticipant
virtual void getPlayerProperties (ServerInfo_PlayerProperties &result)
Protected Attributes inherited from Server_AbstractParticipant
Server_Gamegame
Server_AbstractUserInterfaceuserInterface
int pingTime
int playerId
bool spectator
bool judge
QMutex playerMutex
Protected Attributes inherited from ServerInfo_User_Container
ServerInfo_User * userInfo

Constructor & Destructor Documentation

◆ Server_Spectator()

Server_Spectator::Server_Spectator ( Server_Game * _game,
int _playerId,
const ServerInfo_User & _userInfo,
bool _judge,
Server_AbstractUserInterface * _handler )
Here is the call graph for this function:

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