summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--core/src/ch/asynk/tankontank/game/Unit.java19
1 files changed, 18 insertions, 1 deletions
diff --git a/core/src/ch/asynk/tankontank/game/Unit.java b/core/src/ch/asynk/tankontank/game/Unit.java
index 5ae19b0..23a3248 100644
--- a/core/src/ch/asynk/tankontank/game/Unit.java
+++ b/core/src/ch/asynk/tankontank/game/Unit.java
@@ -10,7 +10,9 @@ import ch.asynk.tankontank.engine.Orientation;
public class Unit extends HeadedPawn
{
- public static final int DISABLED = 0;
+ public static final int MOVE = 0;
+ public static final int ATTACK = 1;
+ public static final int TARGET = 2;
public enum UnitType implements Pawn.PawnType
{
@@ -222,4 +224,19 @@ public class Unit extends HeadedPawn
{
hasMoved = false;
}
+
+ public void showMoveable(boolean enable)
+ {
+ enableOverlay(MOVE, enable);
+ }
+
+ public void showAttack(boolean enable)
+ {
+ enableOverlay(ATTACK, enable);
+ }
+
+ public void showTarget(boolean enable)
+ {
+ enableOverlay(TARGET, enable);
+ }
}