summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2014-10-06 14:17:17 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2014-10-06 14:17:17 +0200
commit6e1c9e115cd513c358be8d45ad84f2bf31202d2c (patch)
tree0185c5f81cffb192297184cb65d91742f1af69a9
parentbd9947b9147e0aa3a9d2af7220a759e53fa006bc (diff)
downloadRustAndDust-6e1c9e115cd513c358be8d45ad84f2bf31202d2c.zip
RustAndDust-6e1c9e115cd513c358be8d45ad84f2bf31202d2c.tar.gz
Hud: change constructor param order to match Map
-rw-r--r--core/src/ch/asynk/tankontank/game/GameCtrl.java2
-rw-r--r--core/src/ch/asynk/tankontank/game/Hud.java2
2 files changed, 2 insertions, 2 deletions
diff --git a/core/src/ch/asynk/tankontank/game/GameCtrl.java b/core/src/ch/asynk/tankontank/game/GameCtrl.java
index 38057d6..d295185 100644
--- a/core/src/ch/asynk/tankontank/game/GameCtrl.java
+++ b/core/src/ch/asynk/tankontank/game/GameCtrl.java
@@ -27,7 +27,7 @@ public class GameCtrl implements Disposable
this.game = game;
this.factory = new GameFactory(game.manager);
- this.hud = new Hud(game, this);
+ this.hud = new Hud(this, game);
this.map = factory.getMap(this, game.manager, GameFactory.MapType.MAP_A);
this.noneState = new GameStateNone(this, map);
diff --git a/core/src/ch/asynk/tankontank/game/Hud.java b/core/src/ch/asynk/tankontank/game/Hud.java
index 866c6a1..9918f68 100644
--- a/core/src/ch/asynk/tankontank/game/Hud.java
+++ b/core/src/ch/asynk/tankontank/game/Hud.java
@@ -84,7 +84,7 @@ public class Hud implements Disposable
private Rectangle rect;
private float elapsed;
- public Hud(final TankOnTank game, final GameCtrl ctrl)
+ public Hud(final GameCtrl ctrl, final TankOnTank game)
{
this.game = game;
this.ctrl = ctrl;