summaryrefslogtreecommitdiffstats
path: root/kbattleship/kbattleship/kbdestroyshipstrategy.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kbattleship/kbattleship/kbdestroyshipstrategy.cpp')
-rw-r--r--kbattleship/kbattleship/kbdestroyshipstrategy.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/kbattleship/kbattleship/kbdestroyshipstrategy.cpp b/kbattleship/kbattleship/kbdestroyshipstrategy.cpp
index 714bdd7c..a3882963 100644
--- a/kbattleship/kbattleship/kbdestroyshipstrategy.cpp
+++ b/kbattleship/kbattleship/kbdestroyshipstrategy.cpp
@@ -22,16 +22,16 @@ KBDestroyShipStrategy::KBDestroyShipStrategy(KBStrategy *parent) : KBStrategy(pa
m_working = false;
}
-void KBDestroyShipStrategy::init(KBattleField *field, const QRect &field_rect)
+void KBDestroyShipStrategy::init(KBattleField *field, const TQRect &field_rect)
{
KBStrategy::init(field, field_rect);
m_working = false;
}
-const QPoint KBDestroyShipStrategy::nextShot()
+const TQPoint KBDestroyShipStrategy::nextShot()
{
if(hasMoreShots())
- return QPoint(m_column, m_row);
+ return TQPoint(m_column, m_row);
else
return m_start;
}
@@ -110,12 +110,12 @@ bool KBDestroyShipStrategy::hasMoreShots()
return false;
}
-void KBDestroyShipStrategy::shotAt(const QPoint &pos)
+void KBDestroyShipStrategy::shotAt(const TQPoint &pos)
{
m_prevShots.append(pos);
}
-void KBDestroyShipStrategy::destroyShipAt(const QPoint pos)
+void KBDestroyShipStrategy::destroyShipAt(const TQPoint pos)
{
if(enemyFieldStateAt(pos.x(), pos.y()) == FREE || m_battleField->ownState(pos.x(), pos.y()) == KBattleField::DEATH || m_battleField->ownState(pos.x(), pos.y()) == KBattleField::WATER)
m_working = false;