mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-01 19:13:55 -07:00
GameScene
This commit is contained in:
parent
0d774b5d48
commit
e75c8370eb
2 changed files with 92 additions and 0 deletions
28
cockatrice/src/gamescene.h
Normal file
28
cockatrice/src/gamescene.h
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
#ifndef GAMESCENE_H
|
||||
#define GAMESCENE_H
|
||||
|
||||
#include <QGraphicsScene>
|
||||
#include <QList>
|
||||
|
||||
class Player;
|
||||
class ZoneViewLayout;
|
||||
|
||||
class GameScene : public QGraphicsScene {
|
||||
Q_OBJECT
|
||||
private:
|
||||
static const int playerAreaSpacing = 5;
|
||||
|
||||
QList<Player *> players;
|
||||
ZoneViewLayout *zvLayout;
|
||||
|
||||
void rearrangePlayers();
|
||||
public:
|
||||
GameScene(ZoneViewLayout *_zvLayout, QObject *parent = 0);
|
||||
public slots:
|
||||
void addPlayer(Player *player);
|
||||
void removePlayer(Player *player);
|
||||
private slots:
|
||||
void updateSceneSize();
|
||||
};
|
||||
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue