summaryrefslogtreecommitdiffstats
path: root/kspaceduel/ai.cpp
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.cpp
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.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;