mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-14 14:32:15 -07:00
Do to-do's
Took 3 hours 32 minutes
This commit is contained in:
parent
f7919d3d88
commit
b478026f6c
45 changed files with 620 additions and 506 deletions
|
|
@ -10,13 +10,12 @@
|
|||
// This class de-couples the domain object (i.e. the GameMetaInfo) from the network object.
|
||||
// If the network object changes, only this class needs to be adjusted.
|
||||
|
||||
class Game;
|
||||
class GameMetaInfo : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
explicit GameMetaInfo(QObject *parent = nullptr) : QObject(parent)
|
||||
{
|
||||
}
|
||||
explicit GameMetaInfo(Game *_game);
|
||||
|
||||
QMap<int, QString> roomGameTypes;
|
||||
|
||||
|
|
@ -80,6 +79,11 @@ public:
|
|||
return roomGameTypes.find(gameInfo_.game_types(index)).value();
|
||||
}
|
||||
|
||||
Game *getGame() const
|
||||
{
|
||||
return game;
|
||||
}
|
||||
|
||||
public slots:
|
||||
void setStarted(bool s)
|
||||
{
|
||||
|
|
@ -101,6 +105,7 @@ signals:
|
|||
void spectatorsOmniscienceChanged(bool omniscient);
|
||||
|
||||
private:
|
||||
Game *game;
|
||||
ServerInfo_Game gameInfo_;
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue