diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2014-11-01 12:47:44 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2014-11-01 12:47:44 +0100 |
commit | 342a78a5a458f2606300723c91badc23e4db81b5 (patch) | |
tree | d1e6f5646c3f231a4e595957e24eaf1a7042d2f9 /core/src | |
parent | 3943d25a24ec6c444271b174e8655824a0ecca8a (diff) | |
download | RustAndDust-342a78a5a458f2606300723c91badc23e4db81b5.zip RustAndDust-342a78a5a458f2606300723c91badc23e4db81b5.tar.gz |
Map: toggleAttackAssist: return boolean
Diffstat (limited to 'core/src')
-rw-r--r-- | core/src/ch/asynk/tankontank/game/Map.java | 4 |
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; } } |