summaryrefslogtreecommitdiffstats
path: root/konquest/gamecore.h
diff options
context:
space:
mode:
Diffstat (limited to 'konquest/gamecore.h')
-rw-r--r--konquest/gamecore.h54
1 files changed, 27 insertions, 27 deletions
diff --git a/konquest/gamecore.h b/konquest/gamecore.h
index c8c7c39a..03683a08 100644
--- a/konquest/gamecore.h
+++ b/konquest/gamecore.h
@@ -3,10 +3,10 @@
#include <krandomsequence.h>
-#include <qobject.h>
-#include <qstring.h>
-#include <qcolor.h>
-#include <qptrlist.h>
+#include <tqobject.h>
+#include <tqstring.h>
+#include <tqcolor.h>
+#include <tqptrlist.h>
// Board Size Constants
#define BOARD_ROWS 16
@@ -111,20 +111,20 @@ class Player : public QObject
{
public:
- Player( QString newName, QColor color, int number, bool isAi );
+ Player( TQString newName, TQColor color, int number, bool isAi );
virtual ~Player();
enum { NEUTRAL_PLAYER_NUMBER = -1 };
public:
- QString &getName();
- QString getColoredName();
- QColor &getColor();
+ TQString &getName();
+ TQString getColoredName();
+ TQColor &getColor();
bool isNeutral();
- QPtrList<AttackFleet> &getAttackList();
+ TQPtrList<AttackFleet> &getAttackList();
// factory functions
- static Player *createPlayer( QString newName, QColor newColor, int playerNum, bool isAi );
+ static Player *createPlayer( TQString newName, TQColor newColor, int playerNum, bool isAi );
static Player *createNeutralPlayer();
bool NewAttack( Planet *sourcePlanet, Planet *destPlanet, int shipCount, int departureTurn );
@@ -135,13 +135,13 @@ public:
void setInPlay( bool );
private:
- QString name;
- QColor color;
+ TQString name;
+ TQColor color;
int playerNum;
bool inPlay;
bool aiPlayer;
- QPtrList<AttackFleet> attackList;
+ TQPtrList<AttackFleet> attackList;
// statistics counters
int shipsBuilt;
@@ -177,7 +177,7 @@ class Planet : public QObject
private:
- Planet( QString planetName, Sector &newParentSector,
+ Planet( TQString planetName, Sector &newParentSector,
Player *initialOwner, int newProd,
double newKillP, double newMorale );
@@ -185,13 +185,13 @@ public:
virtual ~Planet();
static Planet *createPlayerPlanet( Sector &parentSector,
- Player *initialOwner, QString planetName );
+ Player *initialOwner, TQString planetName );
static Planet *createNeutralPlanet( Sector &parentSector,
- Player *initialOwner, QString planetName );
+ Player *initialOwner, TQString planetName );
Sector &getSector() const;
Player *getPlayer() const;
- const QString &getName() const;
+ const TQString &getName() const;
DefenseFleet &getFleet();
double getKillPercentage();
@@ -211,7 +211,7 @@ signals:
void selected();
private:
- QString name;
+ TQString name;
Player *owner;
Sector &parentSector;
DefenseFleet homeFleet;
@@ -279,8 +279,8 @@ public:
const int getRows() const;
const int getColumns() const;
- void populateMap( QPtrList<Player> &players, Player *neutral,
- int numNeutralPlanets, QPtrList<Planet> &thePlanets );
+ void populateMap( TQPtrList<Player> &players, Player *neutral,
+ int numNeutralPlanets, TQPtrList<Planet> &thePlanets );
void clearMap();
bool selectedSector( int &x, int &y ) const;
@@ -318,13 +318,13 @@ protected:
//---------------------------------------------------------------------------------
// Typedefs
//---------------------------------------------------------------------------------
-typedef QPoint Coordinate; // Gotta start using this instead of int x,y crap
-typedef QPtrList<AttackFleet> AttackFleetList;
-typedef QPtrListIterator<AttackFleet> AttackFleetListIterator;
-typedef QPtrList<Player> PlayerList;
-typedef QPtrList<Planet> PlanetList;
-typedef QPtrListIterator<Player> PlayerListIterator;
-typedef QPtrListIterator<Planet> PlanetListIterator;
+typedef TQPoint Coordinate; // Gotta start using this instead of int x,y crap
+typedef TQPtrList<AttackFleet> AttackFleetList;
+typedef TQPtrListIterator<AttackFleet> AttackFleetListIterator;
+typedef TQPtrList<Player> PlayerList;
+typedef TQPtrList<Planet> PlanetList;
+typedef TQPtrListIterator<Player> PlayerListIterator;
+typedef TQPtrListIterator<Planet> PlanetListIterator;
#endif // _GAMECORE_H_