diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-11 04:58:26 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-11 04:58:26 +0000 |
commit | 838baf3f99ec5ab81b063eb5449a3381d860f377 (patch) | |
tree | dd31abcfde08ca92e4623b8f50b3d762a87c997a /kasteroids/sprites.h | |
parent | 2bf598bafa22fac4126fc8842df6b0119aadc0e9 (diff) | |
download | tdegames-838baf3f99ec5ab81b063eb5449a3381d860f377.tar.gz tdegames-838baf3f99ec5ab81b063eb5449a3381d860f377.zip |
TQt4 port kdegames
This enables compilation under both Qt3 and Qt4
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdegames@1236074 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kasteroids/sprites.h')
-rw-r--r-- | kasteroids/sprites.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/kasteroids/sprites.h b/kasteroids/sprites.h index 43dc34ea..1f39e74a 100644 --- a/kasteroids/sprites.h +++ b/kasteroids/sprites.h @@ -31,7 +31,7 @@ #define MAX_POWERUP_AGE 500 #define MAX_MISSILE_AGE 40 -class KMissile : public QCanvasSprite +class KMissile : public TQCanvasSprite { public: KMissile( TQCanvasPixmapArray *s, TQCanvas *c ) : TQCanvasSprite( s, c ) @@ -46,7 +46,7 @@ private: int myAge; }; -class KBit : public QCanvasSprite +class KBit : public TQCanvasSprite { public: KBit( TQCanvasPixmapArray *s, TQCanvas *c ) : TQCanvasSprite( s, c ) @@ -62,7 +62,7 @@ private: int death; }; -class KExhaust : public QCanvasSprite +class KExhaust : public TQCanvasSprite { public: KExhaust( TQCanvasPixmapArray *s, TQCanvas *c ) : TQCanvasSprite( s, c ) @@ -78,7 +78,7 @@ private: int death; }; -class KPowerup : public QCanvasSprite +class KPowerup : public TQCanvasSprite { public: KPowerup( TQCanvasPixmapArray *s, TQCanvas *c, int t ) : TQCanvasSprite( s, c ), @@ -94,7 +94,7 @@ protected: int type; }; -class KRock : public QCanvasSprite +class KRock : public TQCanvasSprite { public: KRock (TQCanvasPixmapArray *s, TQCanvas *c, int t, int sk, int st) : TQCanvasSprite( s, c ) @@ -104,7 +104,7 @@ public: { if (cskip-- <= 0) { setFrame( (frame()+step+frameCount())%frameCount() ); - cskip = QABS(skip); + cskip = TQABS(skip); } } @@ -117,7 +117,7 @@ private: int step; }; -class KShield : public QCanvasSprite +class KShield : public TQCanvasSprite { public: KShield( TQCanvasPixmapArray *s, TQCanvas *c ) |