summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2014-11-07 16:57:48 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2014-11-07 16:57:48 +0100
commitc6deec5f553295704c1dc0fd02abe737021a17c5 (patch)
treebf45c6cc55ffaab39dff3d6baba18e35cb1bf130 /core
parent87b88167cf10cbb977f9f04fe204d65d89f1b781 (diff)
downloadRustAndDust-c6deec5f553295704c1dc0fd02abe737021a17c5.zip
RustAndDust-c6deec5f553295704c1dc0fd02abe737021a17c5.tar.gz
Text: add missing TextBounds getBounds()
Diffstat (limited to 'core')
-rw-r--r--core/src/ch/asynk/tankontank/game/hud/Text.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/core/src/ch/asynk/tankontank/game/hud/Text.java b/core/src/ch/asynk/tankontank/game/hud/Text.java
index 0e2e73e..99f07bd 100644
--- a/core/src/ch/asynk/tankontank/game/hud/Text.java
+++ b/core/src/ch/asynk/tankontank/game/hud/Text.java
@@ -50,6 +50,11 @@ public class Text implements Drawable, Disposable
this.ry = (y + b.height);
}
+ public TextBounds getBounds()
+ {
+ return font.getBounds(text);
+ }
+
public void write(String text)
{
this.text = text;