From 944d1d2729b898f92083c4981a919116e6d0baa9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Fri, 14 Nov 2014 16:51:49 +0100 Subject: PossiblePaths: add boolean isSet() --- core/src/ch/asynk/tankontank/engine/PossiblePaths.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/core/src/ch/asynk/tankontank/engine/PossiblePaths.java b/core/src/ch/asynk/tankontank/engine/PossiblePaths.java index 83ce92e..0e10d81 100644 --- a/core/src/ch/asynk/tankontank/engine/PossiblePaths.java +++ b/core/src/ch/asynk/tankontank/engine/PossiblePaths.java @@ -46,6 +46,11 @@ public class PossiblePaths implements Iterable init(pawn, pawn.getTile()); } + public boolean isSet() + { + return (to != null); + } + public void clear() { for (List tiles : this.paths) tiles.clear(); -- cgit v1.1-2-g2b99