summaryrefslogtreecommitdiffstats
path: root/core/src/ch/asynk/zproject/engine/Drawable.java
diff options
context:
space:
mode:
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);
+}