From ea9e33b35cb6d007e2eb5c06e435d0218e08d3e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Fri, 21 Nov 2014 10:06:16 +0100 Subject: remove useless (Unit) casts --- core/src/ch/asynk/tankontank/game/Map.java | 2 +- 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)); } } } -- cgit v1.1-2-g2b99