summaryrefslogtreecommitdiffstats
path: root/kpacman/referee.h
diff options
context:
space:
mode:
Diffstat (limited to 'kpacman/referee.h')
-rw-r--r--kpacman/referee.h88
1 files changed, 44 insertions, 44 deletions
diff --git a/kpacman/referee.h b/kpacman/referee.h
index 376b5c2..3cb2b59 100644
--- a/kpacman/referee.h
+++ b/kpacman/referee.h
@@ -6,11 +6,11 @@
#endif
#include <kapp.h>
-#include <qwidget.h>
-#include <qlist.h>
-#include <qstrlist.h>
-#include <qarray.h>
-#include <qbitarry.h>
+#include <ntqwidget.h>
+#include <ntqlist.h>
+#include <ntqstrlist.h>
+#include <ntqarray.h>
+#include <ntqbitarry.h>
#include "board.h"
#include "pacman.h"
@@ -24,11 +24,11 @@ enum { Init, Introducing, Playing, Demonstration, Paused, Player, Ready,
Scoring, LevelDone, Dying, GameOver, HallOfFame };
-class Referee : public QWidget
+class Referee : public TQWidget
{
Q_OBJECT
public:
- Referee (QWidget *parent=0, const char *name=0, int scheme=-1, int mode=-1, Bitfont *font=0);
+ Referee (TQWidget *parent=0, const char *name=0, int scheme=-1, int mode=-1, Bitfont *font=0);
void setSkill(int);
void setRoom(int);
@@ -72,15 +72,15 @@ signals:
void forcedGameHighscores();
protected:
- void timerEvent(QTimerEvent *);
- void paintEvent(QPaintEvent *);
- void keyPressEvent(QKeyEvent *);
+ void timerEvent(TQTimerEvent *);
+ void paintEvent(TQPaintEvent *);
+ void keyPressEvent(TQKeyEvent *);
- void focusOutEvent(QFocusEvent *);
- void focusInEvent(QFocusEvent *);
+ void focusOutEvent(TQFocusEvent *);
+ void focusInEvent(TQFocusEvent *);
- void fillArray(QArray<int> &, QString, int);
- void fillStrList(QStrList &, QString, int);
+ void fillArray(TQArray<int> &, TQString, int);
+ void fillStrList(TQStrList &, TQString, int);
void fillMapName();
void confScheme();
@@ -90,33 +90,33 @@ protected:
void confScoring(bool defGroup=TRUE);
private:
- QBitArray gameState;
+ TQBitArray gameState;
int timerCount;
int maxLevel;
int scheme;
int mode;
- QString pixmapDirectory;
- QString mapDirectory;
- QStrList mapName;
-
- QArray<int> speed;
- QArray<int> monsterIQ;
- QArray<int> fruitIQ;
- QArray<int> fruitIndex;
- QArray<int> pacmanTicks;
- QArray<int> remTicks;
- QArray<int> dangerousTicks;
- QArray<int> harmlessTicks;
- QArray<int> harmlessDurTicks;
- QArray<int> harmlessWarnTicks;
- QArray<int> arrestTicks;
- QArray<int> arrestDurTicks;
- QArray<int> fruitTicks;
- QArray<int> fruitAppearsTicks;
- QArray<int> fruitDurTicks;
- QArray<int> fruitScoreDurTicks;
+ TQString pixmapDirectory;
+ TQString mapDirectory;
+ TQStrList mapName;
+
+ TQArray<int> speed;
+ TQArray<int> monsterIQ;
+ TQArray<int> fruitIQ;
+ TQArray<int> fruitIndex;
+ TQArray<int> pacmanTicks;
+ TQArray<int> remTicks;
+ TQArray<int> dangerousTicks;
+ TQArray<int> harmlessTicks;
+ TQArray<int> harmlessDurTicks;
+ TQArray<int> harmlessWarnTicks;
+ TQArray<int> arrestTicks;
+ TQArray<int> arrestDurTicks;
+ TQArray<int> fruitTicks;
+ TQArray<int> fruitAppearsTicks;
+ TQArray<int> fruitDurTicks;
+ TQArray<int> fruitScoreDurTicks;
int monsterScoreDurMS;
int playerDurMS;
@@ -134,9 +134,9 @@ private:
int pointScore;
int energizerScore;
- QArray<int> fruitScore;
- QArray<int> monsterScore;
- QArray<int> extraLifeScore;
+ TQArray<int> fruitScore;
+ TQArray<int> monsterScore;
+ TQArray<int> extraLifeScore;
int extraLifeScoreIndex;
int nextExtraLifeScore;
@@ -155,14 +155,14 @@ private:
Pacman *pacman;
Fruit *fruit;
- QList<Monster> *monsters;
- QList<QRect> *monsterRect;
+ TQList<Monster> *monsters;
+ TQList<TQRect> *monsterRect;
- QList<Energizer> *energizers;
- QList<QRect> *energizerRect;
+ TQList<Energizer> *energizers;
+ TQList<TQRect> *energizerRect;
- QRect pacmanRect;
- QRect fruitRect;
+ TQRect pacmanRect;
+ TQRect fruitRect;
void introMonster(int id);
void introPaint(int t);