-rw-r--r-- | noncore/games/snake/snake.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/noncore/games/snake/snake.cpp b/noncore/games/snake/snake.cpp index 9f19841..8a683ab 100644 --- a/noncore/games/snake/snake.cpp +++ b/noncore/games/snake/snake.cpp | |||
@@ -11,29 +11,27 @@ | |||
11 | ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE | 11 | ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE |
12 | ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. | 12 | ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. |
13 | ** | 13 | ** |
14 | ** See http://www.trolltech.com/gpl/ for GPL licensing information. | 14 | ** See http://www.trolltech.com/gpl/ for GPL licensing information. |
15 | ** | 15 | ** |
16 | ** Contact info@trolltech.com if any conditions of this licensing are | 16 | ** Contact info@trolltech.com if any conditions of this licensing are |
17 | ** not clear to you. | 17 | ** not clear to you. |
18 | ** | 18 | ** |
19 | **********************************************************************/ | 19 | **********************************************************************/ |
20 | 20 | ||
21 | #include "snake.h" | 21 | #include "snake.h" |
22 | #include "target.h" | 22 | #include "target.h" |
23 | #include "codes.h" | ||
24 | 23 | ||
25 | #include <qpe/resource.h> | 24 | #include <qpe/resource.h> |
26 | 25 | ||
27 | #include <qregexp.h> | ||
28 | 26 | ||
29 | static int Piecekey[4][4] = { {6, 0, 4, 3 }, {0, 6, 2, 1 }, { 1, 3, 5, 0 }, {2, 4, 0, 5 } }; | 27 | static int Piecekey[4][4] = { {6, 0, 4, 3 }, {0, 6, 2, 1 }, { 1, 3, 5, 0 }, {2, 4, 0, 5 } }; |
30 | 28 | ||
31 | Snake::Snake(QCanvas* c) | 29 | Snake::Snake(QCanvas* c) |
32 | { | 30 | { |
33 | canvas = c; | 31 | canvas = c; |
34 | score = 0; | 32 | score = 0; |
35 | snakelist.setAutoDelete(true); | 33 | snakelist.setAutoDelete(true); |
36 | autoMoveTimer = new QTimer(this); | 34 | autoMoveTimer = new QTimer(this); |
37 | connect( autoMoveTimer, SIGNAL(timeout()), this, SLOT(moveSnake()) ); | 35 | connect( autoMoveTimer, SIGNAL(timeout()), this, SLOT(moveSnake()) ); |
38 | createSnake(); | 36 | createSnake(); |
39 | } | 37 | } |