Diffstat (limited to 'noncore/games/parashoot/interface.h') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/games/parashoot/interface.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/noncore/games/parashoot/interface.h b/noncore/games/parashoot/interface.h index 3f36d0b..5abbe0b 100644 --- a/noncore/games/parashoot/interface.h +++ b/noncore/games/parashoot/interface.h | |||
@@ -17,48 +17,49 @@ | |||
17 | ** not clear to you. | 17 | ** not clear to you. |
18 | ** | 18 | ** |
19 | **********************************************************************/ | 19 | **********************************************************************/ |
20 | 20 | ||
21 | #include "cannon.h" | 21 | #include "cannon.h" |
22 | #include "base.h" | 22 | #include "base.h" |
23 | #include "helicopter.h" | 23 | #include "helicopter.h" |
24 | 24 | ||
25 | #include <qpe/sound.h> | 25 | #include <qpe/sound.h> |
26 | 26 | ||
27 | #include <qmainwindow.h> | 27 | #include <qmainwindow.h> |
28 | #include <qtimer.h> | 28 | #include <qtimer.h> |
29 | #include <qlabel.h> | 29 | #include <qlabel.h> |
30 | 30 | ||
31 | class QCanvas; | 31 | class QCanvas; |
32 | class Helicopter; | 32 | class Helicopter; |
33 | 33 | ||
34 | //enum Direction{ | 34 | //enum Direction{ |
35 | // left, right, up, down }; | 35 | // left, right, up, down }; |
36 | 36 | ||
37 | class ParaShoot : public QMainWindow { | 37 | class ParaShoot : public QMainWindow { |
38 | Q_OBJECT | 38 | Q_OBJECT |
39 | 39 | ||
40 | public: | 40 | public: |
41 | static QString appName() { return QString::fromLatin1("parashoot"); } | ||
41 | ParaShoot(QWidget* parent=0, const char* name=0, WFlags f=0); | 42 | ParaShoot(QWidget* parent=0, const char* name=0, WFlags f=0); |
42 | 43 | ||
43 | void clear(); | 44 | void clear(); |
44 | void gameOver(); | 45 | void gameOver(); |
45 | int mancount; | 46 | int mancount; |
46 | void levelUp(); | 47 | void levelUp(); |
47 | void moveFaster(); | 48 | void moveFaster(); |
48 | 49 | ||
49 | protected: | 50 | protected: |
50 | virtual void keyPressEvent(QKeyEvent*); | 51 | virtual void keyPressEvent(QKeyEvent*); |
51 | virtual void keyReleaseEvent(QKeyEvent*); | 52 | virtual void keyReleaseEvent(QKeyEvent*); |
52 | virtual void resizeEvent(QResizeEvent *e); | 53 | virtual void resizeEvent(QResizeEvent *e); |
53 | 54 | ||
54 | private slots: | 55 | private slots: |
55 | void increaseScore(int); | 56 | void increaseScore(int); |
56 | void newGame(); | 57 | void newGame(); |
57 | void play(); | 58 | void play(); |
58 | void wait(); | 59 | void wait(); |
59 | 60 | ||
60 | private: | 61 | private: |
61 | void showScore( int score, int level ); | 62 | void showScore( int score, int level ); |
62 | QCanvasView* pb; | 63 | QCanvasView* pb; |
63 | QCanvas canvas; | 64 | QCanvas canvas; |
64 | Cannon* cannon; | 65 | Cannon* cannon; |