diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2014-12-03 01:43:00 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2014-12-03 01:43:00 +0100 |
commit | 3659c278215bde44762d3b4fbc5a175519c641b0 (patch) | |
tree | 61ee4e1118fbe841e84faeb790bf66e1e95bd4ea /core | |
parent | dcdbe66bc9127b7d21c107bfa533603ea01368eb (diff) | |
download | RustAndDust-3659c278215bde44762d3b4fbc5a175519c641b0.zip RustAndDust-3659c278215bde44762d3b4fbc5a175519c641b0.tar.gz |
Board: implement Disposable
Diffstat (limited to 'core')
-rw-r--r-- | core/src/ch/asynk/tankontank/engine/Board.java | 6 |
1 files 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<Animation> 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) |