diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2015-12-08 22:30:07 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2015-12-08 22:30:07 +0100 |
commit | adfbc1f7edcbfb0ca11e4cc5ca6450e4ff0df979 (patch) | |
tree | 4c210fc321df668658306678da08b49e3ecf3381 /core/src | |
parent | 91fd50e89569c9b104f8aa3a85dc1a02f3748eb9 (diff) | |
download | RustAndDust-adfbc1f7edcbfb0ca11e4cc5ca6450e4ff0df979.zip RustAndDust-adfbc1f7edcbfb0ca11e4cc5ca6450e4ff0df979.tar.gz |
Hud: constructor needs only game parameter
Diffstat (limited to 'core/src')
-rw-r--r-- | core/src/ch/asynk/rustanddust/game/Ctrl.java | 2 | ||||
-rw-r--r-- | core/src/ch/asynk/rustanddust/game/Hud.java | 4 |
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); |