summaryrefslogtreecommitdiffstats
path: root/core/src/ch/asynk/tankontank
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2014-10-29 00:57:50 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2014-10-29 00:57:50 +0100
commitc9d131e5fb4d4cb5b1147d53e7dbe5baa9767eee (patch)
treeb749b9f135c68e369d3e678191676e108a6b5d46 /core/src/ch/asynk/tankontank
parentba7226c24803192f10317147306f2c3047c7e823 (diff)
downloadRustAndDust-c9d131e5fb4d4cb5b1147d53e7dbe5baa9767eee.zip
RustAndDust-c9d131e5fb4d4cb5b1147d53e7dbe5baa9767eee.tar.gz
Unit: add ATTACK_ASSIST overlay
Diffstat (limited to 'core/src/ch/asynk/tankontank')
-rw-r--r--core/src/ch/asynk/tankontank/game/Unit.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/core/src/ch/asynk/tankontank/game/Unit.java b/core/src/ch/asynk/tankontank/game/Unit.java
index 23a3248..11ab4e6 100644
--- a/core/src/ch/asynk/tankontank/game/Unit.java
+++ b/core/src/ch/asynk/tankontank/game/Unit.java
@@ -13,6 +13,7 @@ public class Unit extends HeadedPawn
public static final int MOVE = 0;
public static final int ATTACK = 1;
public static final int TARGET = 2;
+ public static final int ATTACK_ASSIST = 3;
public enum UnitType implements Pawn.PawnType
{
@@ -235,6 +236,11 @@ public class Unit extends HeadedPawn
enableOverlay(ATTACK, enable);
}
+ public void showAttackAssist(boolean enable)
+ {
+ enableOverlay(ATTACK_ASSIST, enable);
+ }
+
public void showTarget(boolean enable)
{
enableOverlay(TARGET, enable);