servatrice/cockatrice/src/gamescene.h
Max-Wilhelm Bruker 26a77d9e40 new zone view code
2010-03-08 15:55:35 +01:00

33 lines
736 B
C++

#ifndef GAMESCENE_H
#define GAMESCENE_H
#include <QGraphicsScene>
#include <QList>
class Player;
class ZoneViewWidget;
class GameScene : public QGraphicsScene {
Q_OBJECT
private:
static const int playerAreaSpacing = 5;
QList<Player *> players;
QRectF playersRect;
QList<ZoneViewWidget *> views;
public:
GameScene(QObject *parent = 0);
void retranslateUi();
const QRectF &getPlayersRect() const { return playersRect; }
public slots:
void toggleZoneView(Player *player, const QString &zoneName, int numberCards);
void removeZoneView(ZoneViewWidget *item);
void addPlayer(Player *player);
void removePlayer(Player *player);
void clearViews();
void closeMostRecentZoneView();
private slots:
void rearrange();
};
#endif