summaryrefslogtreecommitdiffstats
path: root/kbattleship/kbattleship/kbstrategy.h
diff options
context:
space:
mode:
Diffstat (limited to 'kbattleship/kbattleship/kbstrategy.h')
-rw-r--r--kbattleship/kbattleship/kbstrategy.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/kbattleship/kbattleship/kbstrategy.h b/kbattleship/kbattleship/kbstrategy.h
index 55707a17..9c4cdf15 100644
--- a/kbattleship/kbattleship/kbstrategy.h
+++ b/kbattleship/kbattleship/kbstrategy.h
@@ -18,8 +18,8 @@
#ifndef KBSTRATEGY_H
#define KBSTRATEGY_H
-#include <qvaluelist.h>
-#include <qpoint.h>
+#include <tqvaluelist.h>
+#include <tqpoint.h>
#include "kbattlefield.h"
class KBStrategy
@@ -29,21 +29,21 @@ public:
KBStrategy(KBStrategy *parent = 0);
virtual ~KBStrategy();
- virtual const QPoint nextShot() = 0;
- virtual void shotAt(const QPoint &pos);
- virtual void init(KBattleField *field, const QRect &field_rect);
+ virtual const TQPoint nextShot() = 0;
+ virtual void shotAt(const TQPoint &pos);
+ virtual void init(KBattleField *field, const TQRect &field_rect);
virtual bool hasMoreShots() = 0;
protected:
- QValueList<QPoint> masterShotList();
+ TQValueList<TQPoint> masterShotList();
int enemyFieldStateAt(int x, int y);
bool* getViableShots();
- QRect m_fieldRect;
+ TQRect m_fieldRect;
bool* m_viableShots;
bool isViablePos(int x, int y);
void setViablePos(int x, int y, bool viable);
- QValueList<QPoint> m_prevShots;
+ TQValueList<TQPoint> m_prevShots;
KBattleField *m_battleField;
KBStrategy *m_parent;