summaryrefslogtreecommitdiffstats
path: root/libksirtet/common/ai.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 /libksirtet/common/ai.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 'libksirtet/common/ai.h')
-rw-r--r--libksirtet/common/ai.h18
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;
};