4
#include <QGraphicsScene>
7
class World : public QGraphicsScene
11
explicit World(QObject *parent = 0);
12
inline int layers(){return myLayers.count();}
13
void save(QIODevice *device);
14
void load(QIODevice *device);
15
void getMinMaxLayer(int &min, int &max);
16
void setActiveLayer(int layer);
17
Block *addBlock(QPoint pos, int y, BlockType type);
18
void addPointToBoundaries(QPoint pos);
21
void layerCountChanged(int);
22
void activeLayerChanged(int);
24
Layer *addLayer(bool onTop);
27
QMap<int, Layer*> myLayers;