diff options
Diffstat (limited to 'libksirtet/common/ai.h')
-rw-r--r-- | libksirtet/common/ai.h | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/libksirtet/common/ai.h b/libksirtet/common/ai.h index da298abc..b25a1d90 100644 --- a/libksirtet/common/ai.h +++ b/libksirtet/common/ai.h @@ -1,8 +1,8 @@ #ifndef COMMON_AI_H #define COMMON_AI_H -#include <qtimer.h> -#include <qvaluevector.h> +#include <tqtimer.h> +#include <tqvaluevector.h> #include <kdialogbase.h> #include <knuminput.h> @@ -62,7 +62,7 @@ class LIBKSIRTET_EXPORT AI : public QObject double coefficient; int trigger; }; - const QValueVector<Element> &elements() const { return _elements; } + const TQValueVector<Element> &elements() const { return _elements; } void settingsChanged(); @@ -86,13 +86,13 @@ class LIBKSIRTET_EXPORT AI : public QObject double points() const; void resizePieces(uint size); - QTimer timer; + TQTimer timer; enum ThinkState { Thinking, GivingOrders }; ThinkState state; uint thinkTime, orderTime; bool stopped; - QMemArray<AIPiece *> pieces; - QValueVector<Element> _elements; + TQMemArray<AIPiece *> pieces; + TQValueVector<Element> _elements; Board *main, *board; KRandomSequence random; @@ -107,14 +107,14 @@ class LIBKSIRTET_EXPORT AIConfig : public QWidget { Q_OBJECT public: - AIConfig(const QValueVector<AI::Element> &elements); + AIConfig(const TQValueVector<AI::Element> &elements); static double coefficient(const AI::Data &data); static int trigger(const AI::Data &data); private: - static QCString triggerKey(const char *name); - static QCString coefficientKey(const char *name); + static TQCString triggerKey(const char *name); + static TQCString coefficientKey(const char *name); static const uint minThinkingDepth, maxThinkingDepth; }; |