summaryrefslogtreecommitdiffstats
path: root/core/src/ch
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2014-11-04 16:48:44 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2014-11-04 16:48:44 +0100
commit0dc047a0932c732978579e4cd34850c6f88aac93 (patch)
treea593c86513f0afdcb0cc7368258059976d980bb2 /core/src/ch
parent8b9b029ddc56b79edd3fef129e9bf51a278f6538 (diff)
downloadRustAndDust-0dc047a0932c732978579e4cd34850c6f88aac93.zip
RustAndDust-0dc047a0932c732978579e4cd34850c6f88aac93.tar.gz
UnitDock: code reorder
Diffstat (limited to 'core/src/ch')
-rw-r--r--core/src/ch/asynk/tankontank/game/Hud.java36
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);