4 #include <QGraphicsScene>
6 class SeaScene : public QGraphicsScene
10 explicit SeaScene(QObject *parent = 0);
16 void setupMap(int ghosts, int rocks, int octopuses);
18 void spreadGhosts(int ghosts);
22 /*! Gives a pointer to a random position if a free one is found. Otherwise returns NULL.
23 The position is the upper left corner of a free 40x40 pixels slot.
26 QPointF* findRandomFreeSlot();
28 const QString ghostImageFilename_;
29 const QString rockImageFilename_;
30 const QString octopusImageFilename_;
31 const QStringList shipImageFilenames_;
33 QList<QPointF> freeTiles_;