summaryrefslogtreecommitdiffstats
path: root/kspaceduel/ai.h
diff options
context:
space:
mode:
Diffstat (limited to 'kspaceduel/ai.h')
-rw-r--r--kspaceduel/ai.h24
1 files changed, 12 insertions, 12 deletions
diff --git a/kspaceduel/ai.h b/kspaceduel/ai.h
index 0369ea02..8e258d6a 100644
--- a/kspaceduel/ai.h
+++ b/kspaceduel/ai.h
@@ -3,8 +3,8 @@
#include <krandomsequence.h>
-#include <qptrlist.h>
-#include <qmemarray.h>
+#include <tqptrlist.h>
+#include <tqmemarray.h>
#include "sprites.h"
#include "dialogs.h"
@@ -39,8 +39,8 @@ struct Shot
class Ai
{
public:
- Ai(int pn,ShipSprite* s[2],QPtrList<BulletSprite> *b[2],
- QPtrList<MineSprite> *m[2],SConfig *c);
+ Ai(int pn,ShipSprite* s[2],TQPtrList<BulletSprite> *b[2],
+ TQPtrList<MineSprite> *m[2],SConfig *c);
void newRound();
void think();
bool rotateLeft(){return rotation==RLEFT;}
@@ -50,7 +50,7 @@ public:
bool layMine(){return mine;}
private:
AiSprite nextPosition(AiSprite sp,double mult);
- void nextPositions(AiSprite sp,QMemArray<AiSprite> *a,int frames);
+ void nextPositions(AiSprite sp,TQMemArray<AiSprite> *a,int frames);
Hit firstObject(AiSprite shot,int shotframes,int frames);
void shotScores();
void calculateNextPositions();
@@ -74,15 +74,15 @@ private:
//sprites
int playerNumber,opponentNumber;
ShipSprite *ship[2];
- QPtrList<BulletSprite> *bullets[2];
- QPtrList<MineSprite> *mines[2];
- QMemArray<AiSprite> *shipsNextPositions[2];
- QMemArray<AiSprite> *aiMines[2];
+ TQPtrList<BulletSprite> *bullets[2];
+ TQPtrList<MineSprite> *mines[2];
+ TQMemArray<AiSprite> *shipsNextPositions[2];
+ TQMemArray<AiSprite> *aiMines[2];
int mineNumber[2];
//possible Hits
- QPtrList<Shot> myShots;
- QPtrList<Hit> objectsHitByShip;
- QPtrList<Hit> minesHitByShot;
+ TQPtrList<Shot> myShots;
+ TQPtrList<Hit> objectsHitByShip;
+ TQPtrList<Hit> minesHitByShot;
int borderTime;
int sunTime;
//SpriteField width and height