summaryrefslogtreecommitdiffstats
path: root/core/src/ch
diff options
context:
space:
mode:
Diffstat (limited to 'core/src/ch')
-rw-r--r--core/src/ch/asynk/tankontank/game/states/StateCommon.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/core/src/ch/asynk/tankontank/game/states/StateCommon.java b/core/src/ch/asynk/tankontank/game/states/StateCommon.java
index b20c5d0..6361eb7 100644
--- a/core/src/ch/asynk/tankontank/game/states/StateCommon.java
+++ b/core/src/ch/asynk/tankontank/game/states/StateCommon.java
@@ -64,11 +64,11 @@ public abstract class StateCommon implements State
TankOnTank.debug(" select " + selectedHex + selectedUnit + (isEnemy ? " enemy " : " friend "));
}
- protected void showPossibilities(Unit pawn)
+ protected void showPossibilities(Unit unit)
{
- if (ctrl.cfg.showMoves && pawn.canMove()) map.showPossibleMoves();
- if (ctrl.cfg.showTargets && pawn.canEngage()) map.showPossibleTargets();
- if (ctrl.cfg.showMoveAssists && pawn.canMove()) map.showMoveableUnits();
+ if (ctrl.cfg.showMoves && unit.canMove()) map.showPossibleMoves();
+ if (ctrl.cfg.showTargets && unit.canEngage()) map.showPossibleTargets();
+ if (ctrl.cfg.showMoveAssists && unit.canMove()) map.showMoveableUnits();
}
protected void hidePossibilities()