summaryrefslogtreecommitdiffstats
path: root/kgoldrunner/src/kgrfigure.h
diff options
context:
space:
mode:
Diffstat (limited to 'kgoldrunner/src/kgrfigure.h')
-rw-r--r--kgoldrunner/src/kgrfigure.h19
1 files changed, 11 insertions, 8 deletions
diff --git a/kgoldrunner/src/kgrfigure.h b/kgoldrunner/src/kgrfigure.h
index 12551418..fd7de606 100644
--- a/kgoldrunner/src/kgrfigure.h
+++ b/kgoldrunner/src/kgrfigure.h
@@ -33,9 +33,10 @@ class KGrCanvas;
class KGrObject;
class KGrEnemy;
-class KGrFigure : public QObject
+class KGrFigure : public TQObject
{
Q_OBJECT
+ TQ_OBJECT
public:
KGrFigure (int, int);
virtual ~KGrFigure();
@@ -53,7 +54,7 @@ public:
// dependent on number of enemies.
int getx();
int gety();
- Status getStatus();
+ tqStatus gettqStatus();
int getnuggets();
void setNuggets(int n);
@@ -80,7 +81,7 @@ protected:
TQTimer *fallTimer;
KGrObject *(*playfield)[30][22];
- Status status;
+ tqStatus status;
Direction direction;
bool canWalkRight();
bool canWalkLeft();
@@ -102,6 +103,7 @@ protected:
class KGrHero : public KGrFigure
{
Q_OBJECT
+ TQ_OBJECT
public:
KGrHero(KGrCanvas *, int , int);
virtual ~KGrHero();
@@ -114,7 +116,7 @@ public:
#ifdef QT3
void setEnemyList(TQPtrList<KGrEnemy> *);
#else
- void setEnemyList(QList<KGrEnemy> *);
+ void setEnemyList(TQList<KGrEnemy> *);
#endif
void init(int,int);
void setKey(Direction);
@@ -131,7 +133,7 @@ private:
#ifdef QT3
TQPtrList<KGrEnemy> *enemies;
#else
- QList<KGrEnemy> *enemies;
+ TQList<KGrEnemy> *enemies;
#endif
KGrCanvas * heroView;
bool standOnEnemy();
@@ -161,6 +163,7 @@ signals:
class KGrEnemy : public KGrFigure
{
Q_OBJECT
+ TQ_OBJECT
public:
KGrEnemy (KGrCanvas *, int , int);
virtual ~KGrEnemy();
@@ -169,7 +172,7 @@ public:
#ifdef QT3
void setEnemyList(TQPtrList<KGrEnemy> *);
#else
- void setEnemyList(QList<KGrEnemy> *);
+ void setEnemyList(TQList<KGrEnemy> *);
#endif
virtual void init(int,int);
static int WALKDELAY;
@@ -182,14 +185,14 @@ public:
private:
KGrCanvas * enemyView;
int birthX, birthY;
- int searchStatus;
+ int searchtqStatus;
int captiveCounter;
TQTimer *captiveTimer;
bool canWalkUp();
#ifdef QT3
TQPtrList<KGrEnemy> *enemies;
#else
- QList<KGrEnemy> *enemies;
+ TQList<KGrEnemy> *enemies;
#endif
bool standOnEnemy();
bool bumpingFriend();