bfeb5cbeabef32cbe4fa28a1bf7ee352b54de479
[ghostsoverboard] / seascene.h
1 #ifndef SEASCENE_H
2 #define SEASCENE_H
3
4 #include <QGraphicsScene>
5
6 class SeaScene : public QGraphicsScene
7 {
8     Q_OBJECT
9 public:
10     explicit SeaScene(QObject *parent = 0);
11
12 signals:
13
14 public slots:
15
16     void setupMap(int ghosts, int rocks, int octopuses);
17
18     void spreadGhosts(int ghosts);
19
20 protected:
21
22     QPointF findRandomFreeSlot();
23
24     const QString ghostImageFilename_;
25     const QString rockImageFilename_;
26     const QString octopusImageFilename_;
27     const QStringList shipImageFilenames_;
28
29     QList<QPointF> freeTiles_;
30
31
32
33
34 };
35
36 #endif // SEASCENE_H