diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2014-11-14 16:51:49 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2014-11-14 16:51:49 +0100 |
commit | 944d1d2729b898f92083c4981a919116e6d0baa9 (patch) | |
tree | d40fab966e3a9482ab4de44c43c14fa2bca04164 /core/src/ch/asynk/tankontank | |
parent | ed155fb472969893c8ce999fb44468a635ffcfce (diff) | |
download | RustAndDust-944d1d2729b898f92083c4981a919116e6d0baa9.zip RustAndDust-944d1d2729b898f92083c4981a919116e6d0baa9.tar.gz |
PossiblePaths: add boolean isSet()
Diffstat (limited to 'core/src/ch/asynk/tankontank')
-rw-r--r-- | core/src/ch/asynk/tankontank/engine/PossiblePaths.java | 5 |
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(); |