summaryrefslogtreecommitdiff
Side-by-side diff
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
@@ -1,48 +1,47 @@
/*
* Copyright (C) 2000 Stefan Schimanski <1Stein@gmx.de>
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Library General Public License for more details.
*
* You should have received a copy of the GNU Library General Public
* License along with this program; if not, write to the Free
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
#ifndef GAME_H_INCLUDED
#define GAME_H_INCLUDED
#include <qwidget.h>
#include <qcanvas.h>
-#include <qmemarray.h>
class QTimer;
class JezzField;
#define FIELD_WIDTH 26
#define FIELD_HEIGHT 26
class Arrow : public QCanvasSprite
{
public:
Arrow(QCanvasPixmapArray* array, QCanvas* canvas);
void update();
void changeDirection();
protected:
bool m_vertical;
};
class Ball : public QCanvasSprite
{
public:
Ball(QCanvasPixmapArray* array, QCanvas* canvas);
@@ -82,49 +81,48 @@ private:
JezzField *m_field;
int m_dx, m_dy;
int m_x, m_y;
int m_startX, m_startY;
int m_tile;
int m_delay;
bool m_active;
};
class JezzField : public QCanvas
{
Q_OBJECT
public:
JezzField( QPixmap tiles, QObject* parent = 0, const char* name = 0 );
void setGameTile( int x, int y, bool black );
signals:
void ballCollision( Ball *ball, int x, int y, int tile );
private:
friend class Ball;
QPixmap m_tiles;
- QMemArray<QPixmap> m_backTiles;
void setPixmaps( QPixmap tiles );
void emitBallCollisiton( Ball *ball, int x, int y, int tile )
{ emit ballCollision( ball, x, y, tile ); };
};
class JezzView : public QCanvasView
{
Q_OBJECT
public:
JezzView(QCanvas* viewing=0, QWidget* parent=0, const char* name=0, WFlags f=0);
void changeCursor();
signals:
void buildWall( int x, int y, bool vertical );
protected:
void viewportMouseReleaseEvent( QMouseEvent * );
private:
bool m_vertical;
};