diff options
Diffstat (limited to 'kbackgammon/kbgstatus.h')
-rw-r--r-- | kbackgammon/kbgstatus.h | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/kbackgammon/kbgstatus.h b/kbackgammon/kbgstatus.h index afcc2f6a..05348157 100644 --- a/kbackgammon/kbgstatus.h +++ b/kbackgammon/kbgstatus.h @@ -43,10 +43,11 @@ * @author Jens Hoefkens <[email protected]> * @version $Id$ */ -class KBgStatus : public QObject +class KBgtqStatus : public TQObject { Q_OBJECT + TQ_OBJECT public: @@ -65,27 +66,27 @@ class KBgStatus : public QObject * The default constructor initializes the status to an "empty" * state. The board and dice are empty and the cube shows 1. */ - KBgStatus(); + KBgtqStatus(); /** * Constructor from a FIBS rawboard string */ - KBgStatus(const TQString &rawboard); + KBgtqStatus(const TQString &rawboard); /** * Copy constructor */ - KBgStatus(const KBgStatus &rhs); + KBgtqStatus(const KBgtqStatus &rhs); /** * Assignment operator */ - KBgStatus& operator=(const KBgStatus &rhs); + KBgtqStatus& operator=(const KBgtqStatus &rhs); /** * Destructor */ - virtual ~KBgStatus(); + virtual ~KBgtqStatus(); /* @@ -156,7 +157,7 @@ class KBgStatus : public QObject /* * Return the name of player w. If w is out of bounds or if - * the player names have not been set, TQString::null is + * the player names have not been set, TQString() is * returned. */ TQString player(const int &w = US) const; @@ -231,7 +232,7 @@ class KBgStatus : public QObject /* * Set the n-th dice of player w to v. Nothing is done if w is * invalid or if n is out of bounds. If v is invalid, the - * value zero is assigned (i.e., the dice is invalidated). + * value zero is assigned (i.e., the dice is tqinvalidated). */ void setDice(const int &w, const int &n, const int &v); @@ -288,12 +289,12 @@ class KBgStatus : public QObject * anywhere starting from start or later into direction * dir in the game given by sc. */ - bool movePossible(KBgStatus &sc, int a, int start, int dir) const; + bool movePossible(KBgtqStatus &sc, int a, int start, int dir) const; /* * Copy constr. and assignment share a lot of code. */ - void copy(const KBgStatus &rhs); + void copy(const KBgtqStatus &rhs); /* * Private variables with self-expalanatory names. |