From 94ddf0defaf09f89bcd2443b00683f2c9b0f7695 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Thu, 30 Oct 2014 14:16:43 +0100 Subject: Tile: remove boolean hasTargetsFor(Pawn) --- core/src/ch/asynk/tankontank/engine/Tile.java | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/core/src/ch/asynk/tankontank/engine/Tile.java b/core/src/ch/asynk/tankontank/engine/Tile.java index 735af0e..21c8168 100644 --- a/core/src/ch/asynk/tankontank/engine/Tile.java +++ b/core/src/ch/asynk/tankontank/engine/Tile.java @@ -98,18 +98,6 @@ public abstract class Tile implements Drawable, Disposable return false; } - public boolean hasTargetsFor(Pawn pawn) - { - if (isEmpty()) return false; - Iterator itr = iterator(); - while(itr.hasNext()) { - Pawn target = itr.next(); - if (pawn.canAttack(target)) return true; - } - - return false; - } - public boolean mustBeDrawn() { if (!isEmpty()) return true; -- cgit v1.1-2-g2b99