summaryrefslogtreecommitdiffstats
path: root/kspaceduel/sprites.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/sprites.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/sprites.cpp')
-rw-r--r--kspaceduel/sprites.cpp32
1 files changed, 16 insertions, 16 deletions
diff --git a/kspaceduel/sprites.cpp b/kspaceduel/sprites.cpp
index 08eab3c7..ba163429 100644
--- a/kspaceduel/sprites.cpp
+++ b/kspaceduel/sprites.cpp
@@ -3,25 +3,25 @@
#include <math.h>
-SunSprite::SunSprite(QCanvasPixmapArray *seq, QCanvas* canvas)
- :QCanvasSprite(seq, canvas)
+SunSprite::SunSprite(TQCanvasPixmapArray *seq, TQCanvas* canvas)
+ :TQCanvasSprite(seq, canvas)
{
// doesn't work with Qt 2.2.2 anymore
// setZ(0);
}
-PowerupSprite::PowerupSprite(QCanvasPixmapArray* seq, QCanvas* canvas, int t,
+PowerupSprite::PowerupSprite(TQCanvasPixmapArray* seq, TQCanvas* canvas, int t,
double lifetime)
- :QCanvasSprite(seq, canvas)
+ :TQCanvasSprite(seq, canvas)
{
time=lifetime;
type=t;
}
-MobileSprite::MobileSprite(QCanvasPixmapArray* seq, QCanvas* canvas, int pn)
- :QCanvasSprite(seq, canvas)
+MobileSprite::MobileSprite(TQCanvasPixmapArray* seq, TQCanvas* canvas, int pn)
+ :TQCanvasSprite(seq, canvas)
{
stopped=false;
playerNumber=pn;
@@ -31,7 +31,7 @@ void MobileSprite::forward(double mult, int fr)
{
if(!stopped)
{
- QCanvasSprite::moveBy(xVelocity()*mult,yVelocity()*mult);
+ TQCanvasSprite::moveBy(xVelocity()*mult,yVelocity()*mult);
checkBounds();
setFrame(fr);
}
@@ -43,7 +43,7 @@ void MobileSprite::forward(double mult)
{
if(!stopped)
{
- QCanvasSprite::moveBy(xVelocity()*mult,yVelocity()*mult);
+ TQCanvasSprite::moveBy(xVelocity()*mult,yVelocity()*mult);
checkBounds();
}
}
@@ -107,7 +107,7 @@ AiSprite MobileSprite::toAiSprite()
return as;
}
-ShipSprite::ShipSprite(QCanvasPixmapArray* seq, QCanvas* canvas, int pn)
+ShipSprite::ShipSprite(TQCanvasPixmapArray* seq, TQCanvas* canvas, int pn)
:MobileSprite(seq,canvas,pn)
{
hitpoints=99;
@@ -215,7 +215,7 @@ void ShipSprite::rotateLeft(double rotationEnergyNeed,double rotationSpeed)
}
}
-BulletSprite::BulletSprite(QCanvasPixmapArray* seq,QCanvas* canvas, int pn,double lifetime)
+BulletSprite::BulletSprite(TQCanvasPixmapArray* seq,TQCanvas* canvas, int pn,double lifetime)
:MobileSprite(seq,canvas,pn)
{
setZ(-10);
@@ -234,7 +234,7 @@ void BulletSprite::forward(double mult,int fr)
time-=mult;
}
-MineSprite::MineSprite(QCanvasPixmapArray* seq, QCanvas* canvas, int pn,double atime,double f)
+MineSprite::MineSprite(TQCanvasPixmapArray* seq, TQCanvas* canvas, int pn,double atime,double f)
:MobileSprite(seq,canvas,pn)
{
activateTime=atime;
@@ -246,7 +246,7 @@ MineSprite::MineSprite(QCanvasPixmapArray* seq, QCanvas* canvas, int pn,double a
active=false;
}
-void MineSprite::explode(QCanvasPixmapArray *seq)
+void MineSprite::explode(TQCanvasPixmapArray *seq)
{
setSequence(seq);
timeToGo=seq->count();
@@ -304,8 +304,8 @@ void MineSprite::calculateGravity(double gravity,double mult)
}
}
-ExplosionSprite::ExplosionSprite(QCanvasPixmapArray* seq, QCanvas* canvas, MobileSprite *sp)
- :QCanvasSprite(seq, canvas)
+ExplosionSprite::ExplosionSprite(TQCanvasPixmapArray* seq, TQCanvas* canvas, MobileSprite *sp)
+ :TQCanvasSprite(seq, canvas)
{
over=false;
setZ(-5);
@@ -333,8 +333,8 @@ void ExplosionSprite::forward(double mult)
}
-void ExplosionSprite::setSequence(QCanvasPixmapArray *seq)
+void ExplosionSprite::setSequence(TQCanvasPixmapArray *seq)
{
timeToGo=seq->count();
- QCanvasSprite::setSequence(seq);
+ TQCanvasSprite::setSequence(seq);
}