diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2015-02-20 00:58:27 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2015-02-20 00:58:27 +0100 |
commit | 69dee7fd17f76397daa6e74eb6d78110aaa35201 (patch) | |
tree | 90820cb1ecd233f2d49d98308b1857768520a71d /core/src/ch/asynk/tankontank/engine | |
parent | bd29a669b211112f2aba4acc8971df4d18f51032 (diff) | |
download | RustAndDust-69dee7fd17f76397daa6e74eb6d78110aaa35201.zip RustAndDust-69dee7fd17f76397daa6e74eb6d78110aaa35201.tar.gz |
Board,Map,Ctrl: move annimation count to Board
Diffstat (limited to 'core/src/ch/asynk/tankontank/engine')
-rw-r--r-- | core/src/ch/asynk/tankontank/engine/Board.java | 20 |
1 files changed, 16 insertions, 4 deletions
diff --git a/core/src/ch/asynk/tankontank/engine/Board.java b/core/src/ch/asynk/tankontank/engine/Board.java index b307ee7..e7e3105 100644 --- a/core/src/ch/asynk/tankontank/engine/Board.java +++ b/core/src/ch/asynk/tankontank/engine/Board.java @@ -218,9 +218,20 @@ public abstract class Board implements Disposable, Animation protected void addAnimation(Animation a) { + animationCount += 1; nextAnimations.add(a); } + protected void animationDone() + { + animationCount -= 1; + } + + public int animationCount() + { + return animationCount; + } + private void stats() { boolean print = false; @@ -230,10 +241,11 @@ public abstract class Board implements Disposable, Animation print = true; } - if (animationCount != animations.size()) { - animationCount = animations.size(); - print = true; - } + // FIXME this will never be false + // if (animationCount != animations.size()) { + // animationCount = animations.size(); + // print = true; + // } if (print) Gdx.app.debug("Board", " tiles:" + tileCount + " pawns:" + pawnCount + " animations:" + animationCount); |