diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2014-11-28 11:57:16 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2014-11-28 11:57:16 +0100 |
commit | d3e88db809130b0599ddb2bdf54ef30ec13be987 (patch) | |
tree | f2fd122dce578b2ac8cfd3135d673cb596dacb80 /core/src | |
parent | 2797c231dc5811dcac65ac8599c6f448398465db (diff) | |
download | RustAndDust-d3e88db809130b0599ddb2bdf54ef30ec13be987.zip RustAndDust-d3e88db809130b0599ddb2bdf54ef30ec13be987.tar.gz |
StateCommom: pawn var -> unit
Diffstat (limited to 'core/src')
-rw-r--r-- | core/src/ch/asynk/tankontank/game/states/StateCommon.java | 8 |
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() |