From d3e88db809130b0599ddb2bdf54ef30ec13be987 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Fri, 28 Nov 2014 11:57:16 +0100 Subject: StateCommom: pawn var -> unit --- core/src/ch/asynk/tankontank/game/states/StateCommon.java | 8 ++++---- 1 file 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() -- cgit v1.1-2-g2b99