Removed unused fields in GameMetaInfo and GameState (#6142)

* Removed unused fields in GameMetaInfo and GameState

* revert parent to AbstractGame

* init activePlayer to -1
This commit is contained in:
RickyRister 2025-09-15 01:22:11 -07:00 committed by GitHub
parent 9b3756e591
commit 94ba1c83c6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 7 additions and 26 deletions

View file

@ -2,7 +2,7 @@
#include "abstract_game.h"
GameState::GameState(AbstractGame *_game,
GameState::GameState(AbstractGame *parent,
int _secondsElapsed,
int _hostId,
bool _isLocalGame,
@ -11,9 +11,9 @@ GameState::GameState(AbstractGame *_game,
bool _resuming,
int _currentPhase,
bool _gameClosed)
: QObject(_game), game(_game), secondsElapsed(_secondsElapsed), hostId(_hostId), isLocalGame(_isLocalGame),
: QObject(parent), gameTimer(nullptr), secondsElapsed(_secondsElapsed), hostId(_hostId), isLocalGame(_isLocalGame),
clients(_clients), gameStateKnown(_gameStateKnown), resuming(_resuming), currentPhase(_currentPhase),
gameClosed(_gameClosed)
activePlayer(-1), gameClosed(_gameClosed)
{
}