#define SEASCENE_H
#include <QGraphicsScene>
+#include "screenlitkeeper.h"
+#include "level.h"
class SeaScene : public QGraphicsScene
{
signals:
+ void allGhostsPicked();
+ void pauseOn();
+ void pauseOff();
+ void vibrationActivated(bool on);
+
public slots:
- void setupMap(int ghosts, int rocks, int octopuses);
+ /*! Places all needed items for a level to (re)start.
+ Relies on the scene size to be explicitly set to a a value that will persist troughout play.
+ @param ghosts the number of ghosts to be placed on the map
+ @param rocks the number of rocks to be placed on the map
+ @param octopuses number of octopuses to be placed on the map
+ */
+ void setupMap(int ghosts, int rocks, int octopuses, int octopusSpeed);
+
+ void setupMap(Level level);
void spreadGhosts(int ghosts);
+ void removeGhost(QGraphicsItem * pGhost);
+
+ void ghostsDropped(int ghosts);
+
+ void pause (bool paused);
+
+ void vibrationActivate(bool);
+
protected:
/*! Gives a pointer to a random position if a free one is found. Otherwise returns NULL.
QList<QPointF> freeTiles_;
+ int ghostsLeft_;
+
+ QList<QGraphicsItem*> movingItems_;
+
+ bool paused_;
+
+ ScreenLitKeeper screenLitKeeper_;
+