mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-04 20:43:54 -07:00
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:
parent
9b3756e591
commit
94ba1c83c6
4 changed files with 7 additions and 26 deletions
|
|
@ -15,7 +15,7 @@ class GameMetaInfo : public QObject
|
|||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
explicit GameMetaInfo(AbstractGame *_game);
|
||||
explicit GameMetaInfo(AbstractGame *parent);
|
||||
|
||||
QMap<int, QString> roomGameTypes;
|
||||
|
||||
|
|
@ -79,11 +79,6 @@ public:
|
|||
return roomGameTypes.find(gameInfo_.game_types(index)).value();
|
||||
}
|
||||
|
||||
AbstractGame *getGame() const
|
||||
{
|
||||
return game;
|
||||
}
|
||||
|
||||
public slots:
|
||||
void setStarted(bool s)
|
||||
{
|
||||
|
|
@ -105,7 +100,6 @@ signals:
|
|||
void spectatorsOmniscienceChanged(bool omniscient);
|
||||
|
||||
private:
|
||||
AbstractGame *game;
|
||||
ServerInfo_Game gameInfo_;
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue