summaryrefslogtreecommitdiffstats
path: root/core/src/ch/asynk/tankontank/game
diff options
context:
space:
mode:
Diffstat (limited to 'core/src/ch/asynk/tankontank/game')
-rw-r--r--core/src/ch/asynk/tankontank/game/Battle.java2
-rw-r--r--core/src/ch/asynk/tankontank/game/Ctrl.java4
-rw-r--r--core/src/ch/asynk/tankontank/game/battles/BattleFrontalAssault.java2
-rw-r--r--core/src/ch/asynk/tankontank/game/battles/BattleHeadToHead.java2
-rw-r--r--core/src/ch/asynk/tankontank/game/battles/BattleLastStand.java2
5 files changed, 6 insertions, 6 deletions
diff --git a/core/src/ch/asynk/tankontank/game/Battle.java b/core/src/ch/asynk/tankontank/game/Battle.java
index 6f38a21..cffbc75 100644
--- a/core/src/ch/asynk/tankontank/game/Battle.java
+++ b/core/src/ch/asynk/tankontank/game/Battle.java
@@ -17,7 +17,7 @@ public interface Battle
public Player checkVictory(Ctrl ctrl);
- public boolean getReinforcement(Ctrl ctrl);
+ public boolean getReinforcement(Ctrl ctrl, Map map);
public EntryPoint getEntryPoint(Unit unit);
diff --git a/core/src/ch/asynk/tankontank/game/Ctrl.java b/core/src/ch/asynk/tankontank/game/Ctrl.java
index 4ec8606..901a36d 100644
--- a/core/src/ch/asynk/tankontank/game/Ctrl.java
+++ b/core/src/ch/asynk/tankontank/game/Ctrl.java
@@ -121,10 +121,10 @@ public class Ctrl implements Disposable
private void startPlayerTurn()
{
player.turnStart();
- hud.update();
hud.notify(player.getName() + "'s turn", 2, Position.MIDDLE_CENTER, true);
- if (battle.getReinforcement(this))
+ if (battle.getReinforcement(this, map))
hud.notify("You have reinforcement", 2, Position.MIDDLE_CENTER, true);
+ hud.update();
setState(battle.getState(player));
}
diff --git a/core/src/ch/asynk/tankontank/game/battles/BattleFrontalAssault.java b/core/src/ch/asynk/tankontank/game/battles/BattleFrontalAssault.java
index 1f99fec..ef5f79b 100644
--- a/core/src/ch/asynk/tankontank/game/battles/BattleFrontalAssault.java
+++ b/core/src/ch/asynk/tankontank/game/battles/BattleFrontalAssault.java
@@ -63,7 +63,7 @@ public class BattleFrontalAssault extends BattleCommon
}
@Override
- public boolean getReinforcement(Ctrl ctrl)
+ public boolean getReinforcement(Ctrl ctrl, Map map)
{
return false;
}
diff --git a/core/src/ch/asynk/tankontank/game/battles/BattleHeadToHead.java b/core/src/ch/asynk/tankontank/game/battles/BattleHeadToHead.java
index 7e392a6..253bf90 100644
--- a/core/src/ch/asynk/tankontank/game/battles/BattleHeadToHead.java
+++ b/core/src/ch/asynk/tankontank/game/battles/BattleHeadToHead.java
@@ -59,7 +59,7 @@ public class BattleHeadToHead extends BattleCommon
}
@Override
- public boolean getReinforcement(Ctrl ctrl)
+ public boolean getReinforcement(Ctrl ctrl, Map map)
{
return false;
}
diff --git a/core/src/ch/asynk/tankontank/game/battles/BattleLastStand.java b/core/src/ch/asynk/tankontank/game/battles/BattleLastStand.java
index c1a0fbf..6682310 100644
--- a/core/src/ch/asynk/tankontank/game/battles/BattleLastStand.java
+++ b/core/src/ch/asynk/tankontank/game/battles/BattleLastStand.java
@@ -63,7 +63,7 @@ public class BattleLastStand extends BattleCommon
}
@Override
- public boolean getReinforcement(Ctrl ctrl)
+ public boolean getReinforcement(Ctrl ctrl, Map map)
{
return false;
}