From cd84e7b8ae6efa66fb1796c6eda95e4c4fd863f4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Tue, 16 Feb 2016 16:57:54 +0100 Subject: Widget: add update, does nothing, to be overriden if needed --- core/src/ch/asynk/rustanddust/ui/Widget.java | 2 ++ 1 file changed, 2 insertions(+) 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; -- cgit v1.1-2-g2b99