From 3659c278215bde44762d3b4fbc5a175519c641b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Wed, 3 Dec 2014 01:43:00 +0100 Subject: Board: implement Disposable --- core/src/ch/asynk/tankontank/engine/Board.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/core/src/ch/asynk/tankontank/engine/Board.java b/core/src/ch/asynk/tankontank/engine/Board.java index b17170d..c8c5459 100644 --- a/core/src/ch/asynk/tankontank/engine/Board.java +++ b/core/src/ch/asynk/tankontank/engine/Board.java @@ -21,7 +21,7 @@ import ch.asynk.tankontank.engine.gfx.animations.AnimationSequence; import ch.asynk.tankontank.engine.gfx.animations.RunnableAnimation; import ch.asynk.tankontank.engine.gfx.animations.MoveToAnimation.MoveToAnimationCb; -public abstract class Board implements Disposable +public abstract class Board implements Disposable, Animation { private int cols; private int rows; @@ -225,7 +225,7 @@ public abstract class Board implements Disposable Gdx.app.debug("Board", " tiles:" + tileCount + " pawns:" + pawnCount + " animations:" + animationCount); } - public void animate(float delta) + public boolean animate(float delta) { Iterator iter = animations.iterator(); @@ -238,6 +238,8 @@ public abstract class Board implements Disposable for (int i = 0, n = nextAnimations.size(); i < n; i++) animations.add(nextAnimations.get(i)); nextAnimations.clear(); + + return true; } public void draw(Batch batch) -- cgit v1.1-2-g2b99