diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2014-11-21 10:06:16 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2014-11-21 10:06:16 +0100 |
commit | ea9e33b35cb6d007e2eb5c06e435d0218e08d3e5 (patch) | |
tree | 995293ed70ea7e154d808304ef755deea74707c3 /core/src/ch/asynk | |
parent | 36cd9fbb0ebbfa280cc64c411d0aa1252b928aec (diff) | |
download | RustAndDust-ea9e33b35cb6d007e2eb5c06e435d0218e08d3e5.zip RustAndDust-ea9e33b35cb6d007e2eb5c06e435d0218e08d3e5.tar.gz |
remove useless (Unit) casts
Diffstat (limited to 'core/src/ch/asynk')
-rw-r--r-- | core/src/ch/asynk/tankontank/game/Map.java | 2 | ||||
-rw-r--r-- | core/src/ch/asynk/tankontank/game/states/StateMove.java | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/core/src/ch/asynk/tankontank/game/Map.java b/core/src/ch/asynk/tankontank/game/Map.java index 9cebed5..9ea8685 100644 --- a/core/src/ch/asynk/tankontank/game/Map.java +++ b/core/src/ch/asynk/tankontank/game/Map.java @@ -299,7 +299,7 @@ public abstract class Map extends Board { boolean mayReroll = false; for (Unit assist : activatedUnits) { - if (((Unit) assist).isAce()) + if (assist.isAce()) mayReroll = true; } diff --git a/core/src/ch/asynk/tankontank/game/states/StateMove.java b/core/src/ch/asynk/tankontank/game/states/StateMove.java index caeebb2..6c3b144 100644 --- a/core/src/ch/asynk/tankontank/game/states/StateMove.java +++ b/core/src/ch/asynk/tankontank/game/states/StateMove.java @@ -38,7 +38,7 @@ public class StateMove extends StateCommon if (selectedUnit.canMove()) { changeUnit(selectedUnit); } else { - changeUnit((Unit) map.moveableUnits.get(0)); + changeUnit(map.moveableUnits.get(0)); } } } |