diff options
Diffstat (limited to 'core')
-rw-r--r-- | core/src/ch/asynk/tankontank/game/hud/Msg.java | 23 |
1 files changed, 15 insertions, 8 deletions
diff --git a/core/src/ch/asynk/tankontank/game/hud/Msg.java b/core/src/ch/asynk/tankontank/game/hud/Msg.java index 69c834e..5eb3c5c 100644 --- a/core/src/ch/asynk/tankontank/game/hud/Msg.java +++ b/core/src/ch/asynk/tankontank/game/hud/Msg.java @@ -33,6 +33,21 @@ public class Msg extends Bg private boolean visible; private ArrayDeque<MsgInfo> stack; + public Msg(BitmapFont font, TextureRegion region) + { + super(region); + this.visible = false; + this.font = font; + this.stack = new ArrayDeque<MsgInfo>(); + } + + @Override + public void dispose() + { + super.dispose(); + font.dispose(); + } + public float getX() { return x; @@ -43,14 +58,6 @@ public class Msg extends Bg return y; } - public Msg(BitmapFont font, TextureRegion region) - { - super(region); - this.visible = false; - this.font = font; - this.stack = new ArrayDeque<MsgInfo>(); - } - public void pushWrite(String text, float duration, Position position) { if (visible) { |