summaryrefslogtreecommitdiffstats
path: root/core/src/ch/asynk/zproject/engine/Drawable.java
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2018-07-06 14:05:41 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2018-07-06 14:05:41 +0200
commit620077ed656885cb558e5644c75a262346d512aa (patch)
tree0a276aa6e5d62d873b29b71b8f8c20c272d0f31d /core/src/ch/asynk/zproject/engine/Drawable.java
parent80cde5a9822b7beb509df1904b11c30be4f22cac (diff)
downloadgdx-boardgame-620077ed656885cb558e5644c75a262346d512aa.zip
gdx-boardgame-620077ed656885cb558e5644c75a262346d512aa.tar.gz
add engine/ui
- interfaces Drawable and Touchable - basic ui widgets
Diffstat (limited to 'core/src/ch/asynk/zproject/engine/Drawable.java')
-rw-r--r--core/src/ch/asynk/zproject/engine/Drawable.java19
1 files changed, 19 insertions, 0 deletions
diff --git a/core/src/ch/asynk/zproject/engine/Drawable.java b/core/src/ch/asynk/zproject/engine/Drawable.java
new file mode 100644
index 0000000..ca5fe91
--- /dev/null
+++ b/core/src/ch/asynk/zproject/engine/Drawable.java
@@ -0,0 +1,19 @@
+package ch.asynk.zproject.engine;
+
+import com.badlogic.gdx.graphics.g2d.Batch;
+import com.badlogic.gdx.graphics.glutils.ShapeRenderer;
+
+public interface Drawable
+{
+ public float getX();
+ public float getY();
+ public float getWidth();
+ public float getHeight();
+ public float getInnerX();
+ public float getInnerY();
+ public float getInnerWidth();
+ public float getInnerHeight();
+ public void draw(Batch batch);
+ default public void drawDebug(ShapeRenderer debugShapes) { }
+ public void setPosition(float x, float y, float w, float h);
+}