summaryrefslogtreecommitdiffstats
path: root/core/src/ch/asynk
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2014-11-14 16:51:49 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2014-11-14 16:51:49 +0100
commit944d1d2729b898f92083c4981a919116e6d0baa9 (patch)
treed40fab966e3a9482ab4de44c43c14fa2bca04164 /core/src/ch/asynk
parented155fb472969893c8ce999fb44468a635ffcfce (diff)
downloadRustAndDust-944d1d2729b898f92083c4981a919116e6d0baa9.zip
RustAndDust-944d1d2729b898f92083c4981a919116e6d0baa9.tar.gz
PossiblePaths: add boolean isSet()
Diffstat (limited to 'core/src/ch/asynk')
-rw-r--r--core/src/ch/asynk/tankontank/engine/PossiblePaths.java5
1 files changed, 5 insertions, 0 deletions
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<Vector3>
init(pawn, pawn.getTile());
}
+ public boolean isSet()
+ {
+ return (to != null);
+ }
+
public void clear()
{
for (List<Tile> tiles : this.paths) tiles.clear();