summaryrefslogtreecommitdiffstats
path: root/kspaceduel/sprites.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/sprites.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/sprites.h')
-rw-r--r--kspaceduel/sprites.h20
1 files changed, 10 insertions, 10 deletions
diff --git a/kspaceduel/sprites.h b/kspaceduel/sprites.h
index 0d0b1fb3..8011301e 100644
--- a/kspaceduel/sprites.h
+++ b/kspaceduel/sprites.h
@@ -1,7 +1,7 @@
#ifndef __SPRITE_OBJECTS_H
#define __SPRITE_OBJECTS_H
-#include <qcanvas.h>
+#include <tqcanvas.h>
#include "defines.h"
#ifdef sun
@@ -17,7 +17,7 @@ struct AiSprite
class SunSprite:public QCanvasSprite
{
public:
- SunSprite(QCanvasPixmapArray* seq, QCanvas* canvas);
+ SunSprite(TQCanvasPixmapArray* seq, TQCanvas* canvas);
virtual int rtti() const {return S_SUN;}
};
@@ -27,7 +27,7 @@ class PowerupSprite:public QCanvasSprite
public:
enum {PowerupMine=0, PowerupBullet, PowerupShield, PowerupEnergy,
PowerupNum};
- PowerupSprite(QCanvasPixmapArray* seq, QCanvas* canvas, int t, double lifetime);
+ PowerupSprite(TQCanvasPixmapArray* seq, TQCanvas* canvas, int t, double lifetime);
virtual int rtti() const {return S_POWERUP;}
double getLifetime() {return time;}
@@ -41,7 +41,7 @@ private:
class MobileSprite:public QCanvasSprite
{
public:
- MobileSprite(QCanvasPixmapArray* array, QCanvas* canvas, int pn);
+ MobileSprite(TQCanvasPixmapArray* array, TQCanvas* canvas, int pn);
virtual void forward(double mult,int frame);
virtual void forward(double mult);
@@ -63,7 +63,7 @@ protected:
class ShipSprite:public MobileSprite
{
public:
- ShipSprite(QCanvasPixmapArray* seq, QCanvas* canvas, int pn);
+ ShipSprite(TQCanvasPixmapArray* seq, TQCanvas* canvas, int pn);
virtual int rtti() const {return S_SHIP;}
int getHitPoints() {return hitpoints;}
void setHitPoints(int hp) {hitpoints=(hp<0?0:hp);}
@@ -99,7 +99,7 @@ private:
class BulletSprite:public MobileSprite
{
public:
- BulletSprite(QCanvasPixmapArray* seq, QCanvas* canvas, int pn,double lifetime);
+ BulletSprite(TQCanvasPixmapArray* seq, TQCanvas* canvas, int pn,double lifetime);
virtual int rtti() const {return S_BULLET;}
virtual void forward(double mult);
virtual void forward(double mult,int fr);
@@ -111,13 +111,13 @@ private:
class MineSprite:public MobileSprite
{
public:
- MineSprite(QCanvasPixmapArray* seq, QCanvas* canvas, int pn,double atime,double f);
+ MineSprite(TQCanvasPixmapArray* seq, TQCanvas* canvas, int pn,double atime,double f);
virtual int rtti() const {return S_MINE;}
bool isActive() {return active;}
double getFuel() {return fuel;}
void setFuel(double f) {fuel=(f<0.0?0.0:f);}
virtual void forward(double mult);
- void explode(QCanvasPixmapArray* s);
+ void explode(TQCanvasPixmapArray* s);
bool explodes() {return expl;}
bool over() {return (expl&&(explosiontime>(timeToGo-0.1)));}
virtual void calculateGravity(double gravity,double mult);
@@ -129,11 +129,11 @@ private:
class ExplosionSprite:public QCanvasSprite
{
public:
- ExplosionSprite(QCanvasPixmapArray *seq, QCanvas* field, MobileSprite *sp);
+ ExplosionSprite(TQCanvasPixmapArray *seq, TQCanvas* field, MobileSprite *sp);
virtual int rtti() const {return S_EXPLOSION;}
bool isOver() {return over;}
virtual void forward(double mult);
- void setSequence(QCanvasPixmapArray *seq);
+ void setSequence(TQCanvasPixmapArray *seq);
private:
double timeToGo,time;
bool over;