![]() |
Cockatrice 2026-10-19-Development-3.1.2-beta.2
A virtual tabletop for multiplayer card games
|
#include <game_state.h>
Public Slots | |
| void | incrementGameTime () |
| void | setGameTime (int _secondsElapsed) |
Signals | |
| void | updateTimeElapsedLabel (QString newTime) |
| void | gameStarted (bool resuming) |
| void | gameStopped () |
| void | activePhaseChanged (int activePhase) |
| void | activePlayerChanged (int playerId) |
Public Member Functions | |
| GameState (AbstractGame *parent, int secondsElapsed, int hostId, bool isLocalGame, QList< AbstractClient * > clients, bool gameStateKnown, bool resuming, int currentPhase, bool gameClosed) | |
| void | setHostId (int _hostId) |
| QList< AbstractClient * > | getClients () const |
| bool | getIsLocalGame () const |
| bool | isResuming () const |
| void | setResuming (bool _resuming) |
| bool | isGameStateKnown () const |
| int | getCurrentPhase () const |
| void | setCurrentPhase (int phase) |
| void | setActivePlayer (int activePlayerId) |
| int | getActivePlayer () const |
| void | setGameClosed (bool closed) |
| bool | isGameClosed () const |
| void | onStartedChanged (bool _started) |
| void | setGameStateKnown (bool known) |
| int | getHostId () const |
| int | getSecondsElapsed () const |
Static Public Member Functions | |
| static QString | formatElapsedTime (int _secondsElapsed) |
Private Attributes | |
| QTimer * | gameTimer |
| int | secondsElapsed |
| int | hostId |
| const bool | isLocalGame |
| QList< AbstractClient * > | clients |
| bool | gameStateKnown |
| bool | resuming |
| int | currentPhase |
| int | activePlayer |
| bool | gameClosed |
|
explicit |
|
signal |
|
signal |
|
static |
|
signal |
|
signal |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
slot |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
slot |
|
inline |
|
inline |
|
signal |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |