From adfbc1f7edcbfb0ca11e4cc5ca6450e4ff0df979 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Tue, 8 Dec 2015 22:30:07 +0100 Subject: Hud: constructor needs only game parameter --- core/src/ch/asynk/rustanddust/game/Ctrl.java | 2 +- 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); -- cgit v1.1-2-g2b99