GameScene

This commit is contained in:
Max-Wilhelm Bruker 2009-09-08 17:56:39 +02:00
parent 0d774b5d48
commit e75c8370eb
2 changed files with 92 additions and 0 deletions

View 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