Diffstat (limited to 'noncore/games/snake/interface.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/games/snake/interface.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/noncore/games/snake/interface.h b/noncore/games/snake/interface.h index 30c7f84..454d4ee 100644 --- a/noncore/games/snake/interface.h +++ b/noncore/games/snake/interface.h | |||
@@ -23,47 +23,47 @@ | |||
23 | 23 | ||
24 | #include "snake.h" | 24 | #include "snake.h" |
25 | #include "target.h" | 25 | #include "target.h" |
26 | #include "obstacle.h" | 26 | #include "obstacle.h" |
27 | 27 | ||
28 | // class QCanvas; | 28 | // class QCanvas; |
29 | 29 | ||
30 | class SnakeGame : public QMainWindow { | 30 | class SnakeGame : public QMainWindow { |
31 | Q_OBJECT | 31 | Q_OBJECT |
32 | 32 | ||
33 | public: | 33 | public: |
34 | SnakeGame(QWidget* parent=0, const char* name=0, WFlags f=0); | 34 | SnakeGame(QWidget* parent=0, const char* name=0, WFlags f=0); |
35 | ~SnakeGame(); | 35 | ~SnakeGame(); |
36 | 36 | ||
37 | void clear(); | 37 | void clear(); |
38 | void createTargets(); | 38 | void createTargets(); |
39 | void welcomescreen(); | ||
40 | 39 | ||
41 | protected: | 40 | protected: |
42 | virtual void keyPressEvent(QKeyEvent*); | 41 | virtual void keyPressEvent(QKeyEvent*); |
43 | virtual void resizeEvent(QResizeEvent *e); | 42 | virtual void resizeEvent(QResizeEvent *e); |
44 | 43 | ||
45 | signals: | 44 | signals: |
46 | void moveFaster(); | 45 | void moveFaster(); |
47 | 46 | ||
48 | private slots: | 47 | private slots: |
49 | void newGame(); | 48 | void newGame(); |
50 | void gameOver(); | 49 | void gameOver(); |
51 | void wait(); | 50 | void wait(); |
52 | void levelUp(); | 51 | void levelUp(); |
53 | void scoreInc(); | 52 | void scoreInc(); |
53 | void welcomescreen(); | ||
54 | 54 | ||
55 | private: | 55 | private: |
56 | void showScore(int); | 56 | void showScore(int); |
57 | QCanvasView* cv; | 57 | QCanvasView* cv; |
58 | QLabel* scorelabel; | 58 | QLabel* scorelabel; |
59 | QCanvas canvas; | 59 | QCanvas canvas; |
60 | QTimer* pauseTimer; | 60 | QTimer* pauseTimer; |
61 | Snake* snake; | 61 | Snake* snake; |
62 | int last; | 62 | int last; |
63 | int level; | 63 | int level; |
64 | int stage; | 64 | int stage; |
65 | int targetamount; | 65 | int targetamount; |
66 | int notargets; | 66 | int notargets; |
67 | bool waitover; | 67 | bool waitover; |
68 | bool gamestopped; | 68 | bool gamestopped; |
69 | }; | 69 | }; |