![]() |
Cockatrice 2026-10-19-Development-3.1.2-beta.2
A virtual tabletop for multiplayer card games
|
#include <tab_game.h>
Classes | |
| struct | DockActions |
| The actions associated with managing a QDockWidget. More... | |
Public Slots | |
| void | viewCardInfo (const CardRef &cardRef={}) const |
| void | resetForRewind () |
| void | updateTimeElapsedLabel (QString newTime) |
| void | addPlayerToAutoCompleteList (QString playerName) |
| void | removePlayerFromAutoCompleteList (QString playerName) |
| void | removeSpectator (int spectatorId, ServerInfo_User spectator) |
| void | processLocalPlayerSideboardLocked (int playerId, bool sideboardLocked) |
| void | processLocalPlayerReadyStateChanged (int playerId, bool ready) |
| void | emitUserEvent () |
Signals | |
| void | gameClosing (TabGame *tab) |
| void | containerProcessingStarted (const GameEventContext &context) |
| void | containerProcessingDone () |
| void | openMessageDialog (const QString &userName, bool focus) |
| void | openDeckEditor (const LoadedDeck &deck) |
| void | notIdle () |
| void | phaseChanged (int phase) |
| void | gameLeft () |
| void | chatMessageSent (QString chatMessage) |
| void | turnAdvanced () |
| Signals inherited from Tab | |
| void | userEvent (bool globalEvent=true) |
| void | tabTextChanged (Tab *tab, const QString &newTabText) |
| void | cockatriceLinkActivated (const QString &url) |
Public Member Functions | |
| TabGame (TabSupervisor *_tabSupervisor, QList< AbstractClient * > &_clients, const Event_GameJoined &event, const QMap< int, QString > &_roomGameTypes) | |
| void | connectToGameState () |
| void | connectToPlayerManager () |
| void | connectToGameEventHandler () |
| void | connectMessageLogToGameEventHandler () |
| void | connectPlayerListToGameEventHandler () |
| TabGame (TabSupervisor *_tabSupervisor, GameReplay *replay) | |
| ~TabGame () override | |
| void | retranslateUi () override |
| void | updatePlayerListDockTitle () |
| bool | closeRequest () override |
| QString | getTabText () const override |
| AbstractGame * | getGame () const |
| Public Member Functions inherited from Tab | |
| Tab (TabSupervisor *_tabSupervisor) | |
| const QList< QMenu * > & | getTabMenus () const |
| TabSupervisor * | getTabSupervisor () const |
| bool | getContentsChanged () const |
| void | setContentsChanged (bool _contentsChanged) |
| virtual void | tabActivated () |
Protected Slots | |
| void | closeEvent (QCloseEvent *event) override |
| Protected Slots inherited from Tab | |
| void | showCardInfoPopup (const QPoint &pos, const CardRef &cardRef) |
| void | deleteCardInfoPopup (const QString &cardName) |
Private Slots | |
| void | adminLockChanged (bool lock) |
| void | newCardAdded (AbstractCardItem *card) |
| void | setCardMenu (CardMenu *menu) |
| void | actGameInfo () |
| void | actInviteToGame () |
| void | actConcede () |
| void | actCopyGameLink () |
| void | actRemoveLocalArrows () |
| void | actRotateViewCW () |
| void | actRotateViewCCW () |
| void | actSay () |
| void | actPhaseAction () |
| void | actNextPhase () |
| void | actNextPhaseAction () |
| void | addMentionTag (const QString &value) |
| void | linkCardToChat (const QString &cardName) |
| void | refreshShortcuts () |
| void | loadLayout () |
| void | actCompleterChanged () |
| void | notifyPlayerJoin (QString playerName) |
| void | notifyPlayerKicked () |
| void | processPlayerLeave (PlayerLogic *leavingPlayer) |
| void | actResetLayout () |
| void | hideEvent (QHideEvent *event) override |
Private Member Functions | |
| PlayerLogic * | addPlayer (PlayerLogic *newPlayer) |
| void | addLocalPlayer (PlayerLogic *newPlayer, int playerId) |
| void | processRemotePlayerDeckSelect (QString deckList, int playerId, QString playerName) |
| void | processMultipleRemotePlayerDeckSelect (QVector< QPair< int, QPair< QString, QString > > > playerIdDeckMap) |
| void | processLocalPlayerDeckSelect (PlayerLogic *localPlayer, int playerId, ServerInfo_Player playerInfo) |
| void | loadDeckForLocalPlayer (PlayerLogic *localPlayer, int playerId, ServerInfo_Player playerInfo) |
| void | processLocalPlayerReady (int playerId, ServerInfo_Player playerInfo) |
| void | createZoneForPlayer (PlayerLogic *newPlayer, int playerId) |
| void | startGame (bool resuming) |
| void | stopGame () |
| void | closeGame () |
| bool | leaveGame () |
| PlayerLogic * | setActivePlayer (int id) |
| void | setActivePhase (int phase) |
| void | createMenuItems () |
| void | createReplayMenuItems () |
| void | createViewMenuItems () |
| void | registerDockWidget (QMenu *_viewMenu, QDockWidget *widget, const QSize &defaultSize) |
| void | createCardInfoDock (bool bReplay=false) |
| void | createPlayerListDock (bool bReplay=false) |
| void | createMessageDock (bool bReplay=false) |
| void | createPlayAreaWidget (bool bReplay=false) |
| void | createDeckViewContainerWidget (bool bReplay=false) |
| void | createReplayDock (GameReplay *replay) |
| void | updateInviteButtonState () |
Additional Inherited Members | |
| Protected Member Functions inherited from Tab | |
| void | addTabMenu (QMenu *menu) |
| Protected Attributes inherited from Tab | |
| TabSupervisor * | tabSupervisor |
| TabGame::TabGame | ( | TabSupervisor * | _tabSupervisor, |
| QList< AbstractClient * > & | _clients, | ||
| const Event_GameJoined & | event, | ||
| const QMap< int, QString > & | _roomGameTypes ) |
| TabGame::TabGame | ( | TabSupervisor * | _tabSupervisor, |
| GameReplay * | replay ) |
|
override |
|
privateslot |
|
privateslot |
|
privateslot |
|
privateslot |
|
privateslot |
|
privateslot |
|
privateslot |
|
privateslot |
|
privateslot |
|
privateslot |
|
privateslot |
|
privateslot |
|
privateslot |
|
private |
|
privateslot |
|
private |
|
slot |
|
privateslot |
|
signal |
|
overrideprotectedslot |
|
private |
|
overridevirtual |
Nicely asks to close the tab. Override this method to do checks or ask for confirmation before closing the tab. If you need to force close the tab, just call close() instead.
Reimplemented from Tab.
| void TabGame::connectMessageLogToGameEventHandler | ( | ) |
| void TabGame::connectPlayerListToGameEventHandler | ( | ) |
| void TabGame::connectToGameEventHandler | ( | ) |
| void TabGame::connectToGameState | ( | ) |
| void TabGame::connectToPlayerManager | ( | ) |
|
signal |
|
signal |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
slot |
|
signal |
|
signal |
|
inlinenodiscard |
|
nodiscardoverridevirtual |
Implements Tab.
|
overrideprivateslot |
|
private |
Confirms the leave game and sends the leave game command, if applicable.
|
privateslot |
|
private |
|
privateslot |
|
privateslot |
|
signal |
|
privateslot |
|
privateslot |
|
signal |
|
signal |
|
signal |
|
private |
|
private |
|
slot |
|
slot |
|
private |
|
privateslot |
|
private |
|
privateslot |
|
private |
|
slot |
|
slot |
|
slot |
|
overridevirtual |
Implements Tab.
|
private |
|
private |
|
privateslot |
| menu | The menu to set. Pass in nullptr to set the menu to empty. |
|
private |
|
private |
|
signal |
|
private |
| void TabGame::updatePlayerListDockTitle | ( | ) |
|
slot |
|
slot |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |