diff options
Diffstat (limited to 'kspaceduel/sprites.cpp')
-rw-r--r-- | kspaceduel/sprites.cpp | 32 |
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); } |