summaryrefslogtreecommitdiffstats
path: root/core/src/ch/asynk/tankontank
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2014-11-01 12:47:44 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2014-11-01 12:47:44 +0100
commit342a78a5a458f2606300723c91badc23e4db81b5 (patch)
treed1e6f5646c3f231a4e595957e24eaf1a7042d2f9 /core/src/ch/asynk/tankontank
parent3943d25a24ec6c444271b174e8655824a0ecca8a (diff)
downloadRustAndDust-342a78a5a458f2606300723c91badc23e4db81b5.zip
RustAndDust-342a78a5a458f2606300723c91badc23e4db81b5.tar.gz
Map: toggleAttackAssist: return boolean
Diffstat (limited to 'core/src/ch/asynk/tankontank')
-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;
}
}