summaryrefslogtreecommitdiffstats
path: root/core/src/ch/asynk
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2015-12-08 22:30:07 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2015-12-08 22:30:07 +0100
commitadfbc1f7edcbfb0ca11e4cc5ca6450e4ff0df979 (patch)
tree4c210fc321df668658306678da08b49e3ecf3381 /core/src/ch/asynk
parent91fd50e89569c9b104f8aa3a85dc1a02f3748eb9 (diff)
downloadRustAndDust-adfbc1f7edcbfb0ca11e4cc5ca6450e4ff0df979.zip
RustAndDust-adfbc1f7edcbfb0ca11e4cc5ca6450e4ff0df979.tar.gz
Hud: constructor needs only game parameter
Diffstat (limited to 'core/src/ch/asynk')
-rw-r--r--core/src/ch/asynk/rustanddust/game/Ctrl.java2
-rw-r--r--core/src/ch/asynk/rustanddust/game/Hud.java4
2 files changed, 3 insertions, 3 deletions
diff --git a/core/src/ch/asynk/rustanddust/game/Ctrl.java b/core/src/ch/asynk/rustanddust/game/Ctrl.java
index 8472ba6..807abe8 100644
--- a/core/src/ch/asynk/rustanddust/game/Ctrl.java
+++ b/core/src/ch/asynk/rustanddust/game/Ctrl.java
@@ -74,7 +74,7 @@ public class Ctrl implements Disposable
this.stateType = StateType.DONE;
StateCommon.set(game);
- this.hud = new Hud(this, game);
+ this.hud = new Hud(game);
this.blockMap = false;
this.blockHud = false;
diff --git a/core/src/ch/asynk/rustanddust/game/Hud.java b/core/src/ch/asynk/rustanddust/game/Hud.java
index 3c1805f..6d82ac8 100644
--- a/core/src/ch/asynk/rustanddust/game/Hud.java
+++ b/core/src/ch/asynk/rustanddust/game/Hud.java
@@ -52,10 +52,10 @@ public class Hud implements Disposable, Animation
}
private OkCancelAction okCancelAction;
- public Hud(final Ctrl ctrl, final RustAndDust game)
+ public Hud(final RustAndDust game)
{
this.game = game;
- this.ctrl = ctrl;
+ this.ctrl = game.ctrl;
TextureAtlas hudAtlas = game.factory.hudAtlas;
playerInfo = new PlayerInfo(ctrl, game.font, game.uiAtlas, hudAtlas);