summaryrefslogtreecommitdiffstats
path: root/kspaceduel/ai.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kspaceduel/ai.cpp')
-rw-r--r--kspaceduel/ai.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/kspaceduel/ai.cpp b/kspaceduel/ai.cpp
index 5a7bec20..828c5e35 100644
--- a/kspaceduel/ai.cpp
+++ b/kspaceduel/ai.cpp
@@ -10,8 +10,8 @@ int Ai::calcShotDirections[Options::EnumAiDifficulty::COUNT] = {4,7,10,12};
int Ai::calcCollisions[Options::EnumAiDifficulty::COUNT] = {30,15,10,10};
int Ai::calcNextShot[Options::EnumAiDifficulty::COUNT] = {300,200,90,60};
-Ai::Ai(int pn,ShipSprite* s[2],QPtrList<BulletSprite>* b[2],
- QPtrList<MineSprite>* m[2],SConfig *c)
+Ai::Ai(int pn,ShipSprite* s[2],TQPtrList<BulletSprite>* b[2],
+ TQPtrList<MineSprite>* m[2],SConfig *c)
{
int i;
@@ -24,9 +24,9 @@ Ai::Ai(int pn,ShipSprite* s[2],QPtrList<BulletSprite>* b[2],
ship[i]=s[i];
bullets[i]=b[i];
mines[i]=m[i];
- shipsNextPositions[i]=new QMemArray<AiSprite>
+ shipsNextPositions[i]=new TQMemArray<AiSprite>
((int)(calcPositionNumber[Options::aiDifficulty(playerNumber)]/cfg->gamespeed));
- aiMines[i]=new QMemArray<AiSprite>(cfg->maxMines);
+ aiMines[i]=new TQMemArray<AiSprite>(cfg->maxMines);
mineNumber[i]=0;
}
myShots.setAutoDelete(true);
@@ -158,7 +158,7 @@ AiSprite Ai::nextPosition(AiSprite sp,double mult)
return sp;
}
-void Ai::nextPositions(AiSprite sp,QMemArray<AiSprite> *a,int frames)
+void Ai::nextPositions(AiSprite sp,TQMemArray<AiSprite> *a,int frames)
{
int i,num;
double fmult=cfg->gamespeed*frames;