summaryrefslogtreecommitdiffstats
path: root/core/src/ch/asynk/gdx/board/Drawable.java
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2018-09-14 09:13:20 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2018-09-14 09:13:20 +0200
commit76c4a8eccdc276583c215e5ad09b5fb2f07ac53e (patch)
tree8e026033a22f2b4d3dfe02235ab40d897309321e /core/src/ch/asynk/gdx/board/Drawable.java
parenta3cc66dc1fe2f468b234083baacd82a37c51fd3f (diff)
downloadgdx-boardgame-76c4a8eccdc276583c215e5ad09b5fb2f07ac53e.zip
gdx-boardgame-76c4a8eccdc276583c215e5ad09b5fb2f07ac53e.tar.gz
ch/asynk/zproject/engine -> ch/asynk/gdx/board
Diffstat (limited to 'core/src/ch/asynk/gdx/board/Drawable.java')
-rw-r--r--core/src/ch/asynk/gdx/board/Drawable.java19
1 files changed, 19 insertions, 0 deletions
diff --git a/core/src/ch/asynk/gdx/board/Drawable.java b/core/src/ch/asynk/gdx/board/Drawable.java
new file mode 100644
index 0000000..53559dc
--- /dev/null
+++ b/core/src/ch/asynk/gdx/board/Drawable.java
@@ -0,0 +1,19 @@
+package ch.asynk.gdx.board;
+
+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);
+}