summaryrefslogtreecommitdiff
authorimm <imm>2002-08-31 22:00:08 (UTC)
committer imm <imm>2002-08-31 22:00:08 (UTC)
commit45c0bbbfb9eefb501a69cbdc5bd736b1d3376c22 (patch) (unidiff)
treeef84efaf072d1285dcec669c8fc2bf334db04435
parenta6102be62cdbb8836c5c9a73ba64d62dbd821776 (diff)
downloadopie-45c0bbbfb9eefb501a69cbdc5bd736b1d3376c22.zip
opie-45c0bbbfb9eefb501a69cbdc5bd736b1d3376c22.tar.gz
opie-45c0bbbfb9eefb501a69cbdc5bd736b1d3376c22.tar.bz2
- <memarray.h>
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/games/zbounce/game.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/noncore/games/zbounce/game.h b/noncore/games/zbounce/game.h
index ae0d4fa..656fba3 100644
--- a/noncore/games/zbounce/game.h
+++ b/noncore/games/zbounce/game.h
@@ -8,33 +8,32 @@
8 * 8 *
9 * This program is distributed in the hope that it will be useful, 9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Library General Public License for more details. 12 * Library General Public License for more details.
13 * 13 *
14 * You should have received a copy of the GNU Library General Public 14 * You should have received a copy of the GNU Library General Public
15 * License along with this program; if not, write to the Free 15 * License along with this program; if not, write to the Free
16 * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 16 * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
17 */ 17 */
18 18
19#ifndef GAME_H_INCLUDED 19#ifndef GAME_H_INCLUDED
20#define GAME_H_INCLUDED 20#define GAME_H_INCLUDED
21 21
22#include <qwidget.h> 22#include <qwidget.h>
23#include <qcanvas.h> 23#include <qcanvas.h>
24#include <qmemarray.h>
25 24
26class QTimer; 25class QTimer;
27class JezzField; 26class JezzField;
28 27
29#define FIELD_WIDTH 26 28#define FIELD_WIDTH 26
30#define FIELD_HEIGHT 26 29#define FIELD_HEIGHT 26
31 30
32class Arrow : public QCanvasSprite 31class Arrow : public QCanvasSprite
33{ 32{
34 public: 33 public:
35 Arrow(QCanvasPixmapArray* array, QCanvas* canvas); 34 Arrow(QCanvasPixmapArray* array, QCanvas* canvas);
36 35
37 void update(); 36 void update();
38 void changeDirection(); 37 void changeDirection();
39 38
40 protected: 39 protected:
@@ -90,33 +89,32 @@ private:
90 89
91 90
92class JezzField : public QCanvas 91class JezzField : public QCanvas
93{ 92{
94 Q_OBJECT 93 Q_OBJECT
95public: 94public:
96 JezzField( QPixmap tiles, QObject* parent = 0, const char* name = 0 ); 95 JezzField( QPixmap tiles, QObject* parent = 0, const char* name = 0 );
97 96
98 void setGameTile( int x, int y, bool black ); 97 void setGameTile( int x, int y, bool black );
99 98
100signals: 99signals:
101 void ballCollision( Ball *ball, int x, int y, int tile ); 100 void ballCollision( Ball *ball, int x, int y, int tile );
102 101
103private: 102private:
104 friend class Ball; 103 friend class Ball;
105 QPixmap m_tiles; 104 QPixmap m_tiles;
106 QMemArray<QPixmap> m_backTiles;
107 105
108 void setPixmaps( QPixmap tiles ); 106 void setPixmaps( QPixmap tiles );
109 void emitBallCollisiton( Ball *ball, int x, int y, int tile ) 107 void emitBallCollisiton( Ball *ball, int x, int y, int tile )
110 { emit ballCollision( ball, x, y, tile ); }; 108 { emit ballCollision( ball, x, y, tile ); };
111 109
112}; 110};
113 111
114 112
115class JezzView : public QCanvasView 113class JezzView : public QCanvasView
116{ 114{
117 Q_OBJECT 115 Q_OBJECT
118public: 116public:
119 JezzView(QCanvas* viewing=0, QWidget* parent=0, const char* name=0, WFlags f=0); 117 JezzView(QCanvas* viewing=0, QWidget* parent=0, const char* name=0, WFlags f=0);
120 void changeCursor(); 118 void changeCursor();
121 119
122signals: 120signals: