diff options
Diffstat (limited to 'core')
-rw-r--r-- | core/src/ch/asynk/tankontank/game/Hud.java | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/core/src/ch/asynk/tankontank/game/Hud.java b/core/src/ch/asynk/tankontank/game/Hud.java index 6b26d71..dcc2f12 100644 --- a/core/src/ch/asynk/tankontank/game/Hud.java +++ b/core/src/ch/asynk/tankontank/game/Hud.java @@ -87,24 +87,6 @@ public class Hud implements Disposable unitDock.setTopLeft(OFFSET, reinforcement.getY() - 5); } - public void update() - { - turns.write("" + ctrl.player.getTurn()); - aps.write("" + ctrl.player.getAp()); - int r = ctrl.player.reinforcement.size(); - if (r == 0) { - reinforcement.visible = false; - } else { - reinforcement.visible = true; - reinforcement.write("" + r); - } - - if (ctrl.player.getFaction() == Army.GE) - flag = geFlag; - else - flag = usFlag; - } - @Override public void dispose() { @@ -128,6 +110,24 @@ public class Hud implements Disposable { } + public void update() + { + turns.write("" + ctrl.player.getTurn()); + aps.write("" + ctrl.player.getAp()); + int r = ctrl.player.getReinforcement().size(); + if (r == 0) { + reinforcement.visible = false; + } else { + reinforcement.visible = true; + reinforcement.write("" + r); + } + + if (ctrl.player.getFaction() == Army.GE) + flag = geFlag; + else + flag = usFlag; + } + public void animate(float delta) { msg.animate(delta); |