Changes in levels (numbers of ghosts and speeds of octopuses)
[ghostsoverboard] / seascene.h
index bb97911..db65f17 100644 (file)
@@ -2,6 +2,8 @@
 #define SEASCENE_H
 
 #include <QGraphicsScene>
+#include "screenlitkeeper.h"
+#include "level.h"
 
 class SeaScene : public QGraphicsScene
 {
@@ -11,6 +13,10 @@ public:
 
 signals:
 
+    void allGhostsPicked();
+    void pauseOn();
+    void pauseOff();
+
 public slots:
 
     /*! Places all needed items for a level to (re)start.
@@ -19,10 +25,18 @@ public slots:
     @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);
+    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);
+
 protected:
 
     /*! Gives a pointer to a random position if a free one is found. Otherwise returns NULL.
@@ -38,6 +52,14 @@ protected:
 
     QList<QPointF> freeTiles_;
 
+    int ghostsLeft_;
+
+    QList<QGraphicsItem*> movingItems_;
+
+    bool paused_;
+
+    ScreenLitKeeper screenLitKeeper_;
+