diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2018-09-14 09:13:20 +0200 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2018-09-14 09:13:20 +0200 |
commit | 76c4a8eccdc276583c215e5ad09b5fb2f07ac53e (patch) | |
tree | 8e026033a22f2b4d3dfe02235ab40d897309321e /core/src/ch/asynk/gdx/board/Drawable.java | |
parent | a3cc66dc1fe2f468b234083baacd82a37c51fd3f (diff) | |
download | gdx-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.java | 19 |
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); +} |