#include<QGraphicsItemGroup>
#include "screenlitkeeper.h"
#include "level.h"
+#include <QAction>
class SeaScene : public QGraphicsScene
{
void vibrationActivate(bool);
- void menuClicked();
+ void handleScreenTapped();
+
+ void about();
+
+ void restartLevel();
+
+ void nextLevel();
+
+ void restartGame();
+
+ void forcePause();
+
+ void softContinue();
- void showMenu();
- void hideMenu();
protected:
QPointF* findRandomFreeSlot();
void createMenuItems();
+ void prepareForMenu(QGraphicsItem * pItem);
const QString ghostImageFilename_;
const QString rockImageFilename_;
ScreenLitKeeper screenLitKeeper_;
- QGraphicsItemGroup menuItems_;
+ int menuItemCount_;
QGraphicsSimpleTextItem * pPausetextItem_;
QGraphicsSimpleTextItem * pRestartLevelItem_;
QGraphicsSimpleTextItem * pRestartGameItem_;
- QGraphicsSimpleTextItem * pVibrateItem_;
+ QGraphicsSimpleTextItem * pSettingsItem_;
QGraphicsSimpleTextItem * pAboutItem_;
+ QList<Level> levelList_;
+
+ int currentLevel_;
+
+
+ QAction* pVibrateAction_;
+
+ QAction* pPauseAction_;
+
+ bool pauseForced_;
+
};