summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
Diffstat (limited to 'core')
-rw-r--r--core/src/ch/asynk/tankontank/game/Map.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/core/src/ch/asynk/tankontank/game/Map.java b/core/src/ch/asynk/tankontank/game/Map.java
index 06d0b8a..26a7e06 100644
--- a/core/src/ch/asynk/tankontank/game/Map.java
+++ b/core/src/ch/asynk/tankontank/game/Map.java
@@ -144,16 +144,18 @@ public abstract class Map extends Board
return s;
}
- public void toggleAttackAssist(Unit unit)
+ public boolean toggleAttackAssist(Unit unit)
{
if (activatedPawns.contains(unit)) {
activatedPawns.remove(unit);
unit.hideAttack();
unit.showAttackAssist();
+ return false;
} else {
activatedPawns.add(unit);
unit.showAttack();
unit.hideAttackAssist();
+ return true;
}
}