1#ifndef ABSTRACT_PARTICIPANT_H
2#define ABSTRACT_PARTICIPANT_H
8#include <libcockatrice/protocol/pb/card_attributes.pb.h>
9#include <libcockatrice/protocol/pb/response.pb.h>
Definition server_response_containers.h:46
Definition server_response_containers.h:89
ServerInfo_User_Container(ServerInfo_User *_userInfo=nullptr)
Definition serverinfo_user_container.cpp:5
Definition server_abstract_participant.h:58
Server_Game * game
Definition server_abstract_participant.h:61
virtual Response::ResponseCode cmdUndoDraw(const Command_UndoDraw &cmd, ResponseContainer &rc, GameEventStorage &ges)
Definition server_abstract_participant.cpp:255
virtual Response::ResponseCode cmdDeleteArrow(const Command_DeleteArrow &cmd, ResponseContainer &rc, GameEventStorage &ges)
Definition server_abstract_participant.cpp:297
Server_AbstractUserInterface * getUserInterface() const
Definition server_abstract_participant.h:82
bool isJudge() const
Definition server_abstract_participant.h:97
int getPingTime() const
Definition server_abstract_participant.h:105
QMutex playerMutex
Definition server_abstract_participant.h:68
virtual Response::ResponseCode cmdDelCounter(const Command_DelCounter &cmd, ResponseContainer &rc, GameEventStorage &ges)
Definition server_abstract_participant.cpp:346
virtual Response::ResponseCode cmdIncCardCounter(const Command_IncCardCounter &cmd, ResponseContainer &rc, GameEventStorage &ges)
Definition server_abstract_participant.cpp:318
int getPlayerId() const
Definition server_abstract_participant.h:89
void setUserInterface(Server_AbstractUserInterface *_userInterface)
Definition server_abstract_participant.cpp:553
virtual void prepareDestroy()
Definition server_abstract_participant.h:77
~Server_AbstractParticipant() override
bool updatePingTime()
Definition server_abstract_participant.cpp:74
virtual Response::ResponseCode cmdIncCounter(const Command_IncCounter &cmd, ResponseContainer &rc, GameEventStorage &ges)
Definition server_abstract_participant.cpp:325
void getProperties(ServerInfo_PlayerProperties &result, bool withUserInfo)
Definition server_abstract_participant.cpp:88
virtual Response::ResponseCode cmdUnconcede(const Command_Unconcede &cmd, ResponseContainer &rc, GameEventStorage &ges)
Definition server_abstract_participant.cpp:162
virtual Response::ResponseCode cmdMulligan(const Command_Mulligan &cmd, ResponseContainer &rc, GameEventStorage &ges)
Definition server_abstract_participant.cpp:234
virtual Response::ResponseCode cmdSetCounter(const Command_SetCounter &cmd, ResponseContainer &rc, GameEventStorage &ges)
Definition server_abstract_participant.cpp:339
virtual Response::ResponseCode cmdSetCardCounter(const Command_SetCardCounter &cmd, ResponseContainer &rc, GameEventStorage &ges)
Definition server_abstract_participant.cpp:311
virtual Response::ResponseCode cmdGameSay(const Command_GameSay &cmd, ResponseContainer &rc, GameEventStorage &ges)
Definition server_abstract_participant.cpp:198
virtual Response::ResponseCode cmdLeaveGame(const Command_LeaveGame &cmd, ResponseContainer &rc, GameEventStorage &ges)
Definition server_abstract_participant.cpp:104
virtual Response::ResponseCode cmdAttachCard(const Command_AttachCard &cmd, ResponseContainer &rc, GameEventStorage &ges)
Definition server_abstract_participant.cpp:276
virtual Response::ResponseCode cmdCreateCounter(const Command_CreateCounter &cmd, ResponseContainer &rc, GameEventStorage &ges)
Definition server_abstract_participant.cpp:332
virtual Response::ResponseCode cmdConcede(const Command_Concede &cmd, ResponseContainer &rc, GameEventStorage &ges)
Definition server_abstract_participant.cpp:155
Response::ResponseCode processGameCommand(const GameCommand &command, ResponseContainer &rc, GameEventStorage &ges)
Definition server_abstract_participant.cpp:431
bool isSpectator() const
Definition server_abstract_participant.h:93
virtual Response::ResponseCode cmdChangeZoneProperties(const Command_ChangeZoneProperties &cmd, ResponseContainer &rc, GameEventStorage &ges)
Definition server_abstract_participant.cpp:400
virtual Response::ResponseCode cmdKickFromGame(const Command_KickFromGame &cmd, ResponseContainer &rc, GameEventStorage &ges)
Definition server_abstract_participant.cpp:112
Server_Game * getGame() const
Definition server_abstract_participant.h:101
virtual Response::ResponseCode cmdRevealCards(const Command_RevealCards &cmd, ResponseContainer &rc, GameEventStorage &ges)
Definition server_abstract_participant.cpp:393
virtual Response::ResponseCode cmdDeckSelect(const Command_DeckSelect &cmd, ResponseContainer &rc, GameEventStorage &ges)
Definition server_abstract_participant.cpp:127
void sendGameEvent(const GameEventContainer &event)
Definition server_abstract_participant.cpp:544
virtual Response::ResponseCode cmdSetCardAttr(const Command_SetCardAttr &cmd, ResponseContainer &rc, GameEventStorage &ges)
Definition server_abstract_participant.cpp:304
void removeFromGame()
Definition server_abstract_participant.cpp:66
virtual Response::ResponseCode cmdRollDie(const Command_RollDie &cmd, ResponseContainer &rc, GameEventStorage &ges) const
Definition server_abstract_participant.cpp:241
virtual Response::ResponseCode cmdReadyStart(const Command_ReadyStart &cmd, ResponseContainer &rc, GameEventStorage &ges)
Definition server_abstract_participant.cpp:190
bool judge
Definition server_abstract_participant.h:66
virtual Response::ResponseCode cmdSetPlaymat(const Command_SetPlaymat &cmd, ResponseContainer &rc, GameEventStorage &ges)
Definition server_abstract_participant.cpp:148
virtual Response::ResponseCode cmdCreateToken(const Command_CreateToken &cmd, ResponseContainer &rc, GameEventStorage &ges)
Definition server_abstract_participant.cpp:283
virtual void getPlayerProperties(ServerInfo_PlayerProperties &result)
Definition server_abstract_participant.cpp:100
virtual void getInfo(ServerInfo_Player *info, Server_AbstractParticipant *recipient, bool omniscient, bool withUserInfo)
Definition server_abstract_participant.cpp:580
void disconnectClient()
Definition server_abstract_participant.cpp:570
Server_AbstractParticipant(Server_Game *_game, int _playerId, const ServerInfo_User &_userInfo, bool _judge, Server_AbstractUserInterface *_handler)
Definition server_abstract_participant.cpp:54
virtual Response::ResponseCode cmdSetSideboardPlan(const Command_SetSideboardPlan &cmd, ResponseContainer &rc, GameEventStorage &ges)
Definition server_abstract_participant.cpp:134
virtual Response::ResponseCode cmdReverseTurn(const Command_ReverseTurn &, ResponseContainer &, GameEventStorage &ges)
Definition server_abstract_participant.cpp:407
int playerId
Definition server_abstract_participant.h:64
virtual Response::ResponseCode cmdDumpZone(const Command_DumpZone &cmd, ResponseContainer &rc, GameEventStorage &ges)
Definition server_abstract_participant.cpp:386
virtual Response::ResponseCode cmdFlipCard(const Command_FlipCard &cmd, ResponseContainer &rc, GameEventStorage &ges)
Definition server_abstract_participant.cpp:269
virtual Response::ResponseCode cmdMoveCard(const Command_MoveCard &cmd, ResponseContainer &rc, GameEventStorage &ges)
Definition server_abstract_participant.cpp:262
virtual Response::ResponseCode cmdNextTurn(const Command_NextTurn &cmd, ResponseContainer &rc, GameEventStorage &ges)
Definition server_abstract_participant.cpp:353
bool spectator
Definition server_abstract_participant.h:65
virtual Response::ResponseCode cmdCreateArrow(const Command_CreateArrow &cmd, ResponseContainer &rc, GameEventStorage &ges)
Definition server_abstract_participant.cpp:290
virtual Response::ResponseCode cmdSetActivePhase(const Command_SetActivePhase &cmd, ResponseContainer &rc, GameEventStorage &ges)
Definition server_abstract_participant.cpp:369
int pingTime
Definition server_abstract_participant.h:63
virtual Response::ResponseCode cmdSetSideboardLock(const Command_SetSideboardLock &cmd, ResponseContainer &rc, GameEventStorage &ges)
Definition server_abstract_participant.cpp:141
virtual Response::ResponseCode cmdShuffle(const Command_Shuffle &cmd, ResponseContainer &rc, GameEventStorage &ges)
Definition server_abstract_participant.cpp:227
virtual Response::ResponseCode cmdJudge(const Command_Judge &cmd, ResponseContainer &rc, GameEventStorage &ges)
Definition server_abstract_participant.cpp:170
virtual Response::ResponseCode cmdDrawCards(const Command_DrawCards &cmd, ResponseContainer &rc, GameEventStorage &ges)
Definition server_abstract_participant.cpp:248
Server_AbstractUserInterface * userInterface
Definition server_abstract_participant.h:62
Definition server_abstractuserinterface.h:20
Definition server_arrowtarget.h:7
Definition server_game.h:52
Definition command_attach_card.proto:3
Definition command_change_zone_properties.proto:3
Definition command_concede.proto:3
Definition command_create_arrow.proto:6
Definition command_create_counter.proto:4
Definition command_create_token.proto:3
Definition command_deck_select.proto:3
Definition command_del_counter.proto:3
Definition command_delete_arrow.proto:3
Definition command_draw_cards.proto:3
Definition command_dump_zone.proto:3
Definition command_flip_card.proto:3
Definition command_game_say.proto:3
Definition command_inc_card_counter.proto:3
Definition command_inc_counter.proto:3
Definition game_commands.proto:189
Definition command_kick_from_game.proto:3
Definition command_leave_game.proto:3
Definition command_move_card.proto:28
Definition command_mulligan.proto:3
Definition command_next_turn.proto:3
Definition command_ready_start.proto:3
Definition command_reveal_cards.proto:3
Definition command_reverse_turn.proto:3
Definition command_roll_die.proto:3
Definition command_set_active_phase.proto:3
Definition command_set_card_attr.proto:4
Definition command_set_card_counter.proto:3
Definition command_set_counter.proto:3
Definition command_set_playmat.proto:4
Definition command_set_sideboard_lock.proto:3
Definition command_set_sideboard_plan.proto:4
Definition command_shuffle.proto:3
Definition command_concede.proto:8
Definition command_undo_draw.proto:3
Definition game_commands.proto:4
Definition game_event_container.proto:4
ResponseCode
Definition response.proto:14
Definition serverinfo_playerproperties.proto:3
Definition serverinfo_player.proto:6
Definition serverinfo_user.proto:2