diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2016-02-16 16:57:54 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2016-02-16 16:57:54 +0100 |
commit | cd84e7b8ae6efa66fb1796c6eda95e4c4fd863f4 (patch) | |
tree | 57541d55c02c231cf881acf79d6085bf391383ba /core/src/ch/asynk/rustanddust/ui | |
parent | ad7e41ca99b71bddeb1a711d532f32eb1344b383 (diff) | |
download | RustAndDust-cd84e7b8ae6efa66fb1796c6eda95e4c4fd863f4.zip RustAndDust-cd84e7b8ae6efa66fb1796c6eda95e4c4fd863f4.tar.gz |
Widget: add update, does nothing, to be overriden if needed
Diffstat (limited to 'core/src/ch/asynk/rustanddust/ui')
-rw-r--r-- | core/src/ch/asynk/rustanddust/ui/Widget.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/core/src/ch/asynk/rustanddust/ui/Widget.java b/core/src/ch/asynk/rustanddust/ui/Widget.java index afcce67..38a89ae 100644 --- a/core/src/ch/asynk/rustanddust/ui/Widget.java +++ b/core/src/ch/asynk/rustanddust/ui/Widget.java @@ -31,6 +31,8 @@ public abstract class Widget implements Disposable, Drawable public float getHeight() { return rect.height; } public float getTop() { return rect.y + rect.height; } + public void update() { } + public void translate(float dx, float dy) { rect.x += dx; |