summaryrefslogtreecommitdiffstats
path: root/kspaceduel/ai.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:42:31 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:42:31 +0000
commit576eb4299a00bc053db35414406f46372a0f70f2 (patch)
tree4c030922d533821db464af566188e7d40cc8848c /kspaceduel/ai.h
parent0718336b6017d1a4fc1d626544180a5a2a29ddec (diff)
downloadtdegames-576eb4299a00bc053db35414406f46372a0f70f2.tar.gz
tdegames-576eb4299a00bc053db35414406f46372a0f70f2.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdegames@1157643 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
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