diff options
Diffstat (limited to 'core/src/ch/asynk/tankontank/engine')
-rw-r--r-- | core/src/ch/asynk/tankontank/engine/PossiblePaths.java | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/core/src/ch/asynk/tankontank/engine/PossiblePaths.java b/core/src/ch/asynk/tankontank/engine/PossiblePaths.java index 6b64879..6fb31e9 100644 --- a/core/src/ch/asynk/tankontank/engine/PossiblePaths.java +++ b/core/src/ch/asynk/tankontank/engine/PossiblePaths.java @@ -7,10 +7,11 @@ import java.util.LinkedList; import java.util.HashSet; import java.util.LinkedHashSet; +import com.badlogic.gdx.utils.Disposable; import com.badlogic.gdx.math.Vector2; import com.badlogic.gdx.math.Vector3; -public class PossiblePaths implements Iterable<Vector3> +public class PossiblePaths implements Disposable, Iterable<Vector3> { private final Board board; @@ -54,6 +55,12 @@ public class PossiblePaths implements Iterable<Vector3> return (to != null); } + @Override + public void dispose() + { + clear(); + } + public void clear() { this.to = null; |