diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2018-09-15 15:38:09 +0200 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2018-09-15 15:38:09 +0200 |
commit | 57cddbf4b79b6c342e53acfa804d01f94d9bd266 (patch) | |
tree | 9fcc89fecc3166ff19a7ab90b14f1a4111903df4 /core/src/ch/asynk/gdx/tabletop/Drawable.java | |
parent | 898a7c34189e2b7d52c794c93e9fa0aeb759ca64 (diff) | |
download | gdx-boardgame-57cddbf4b79b6c342e53acfa804d01f94d9bd266.zip gdx-boardgame-57cddbf4b79b6c342e53acfa804d01f94d9bd266.tar.gz |
namespecat gdx.board -> gdx.tabletop
Diffstat (limited to 'core/src/ch/asynk/gdx/tabletop/Drawable.java')
-rw-r--r-- | core/src/ch/asynk/gdx/tabletop/Drawable.java | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/core/src/ch/asynk/gdx/tabletop/Drawable.java b/core/src/ch/asynk/gdx/tabletop/Drawable.java new file mode 100644 index 0000000..ce9372b --- /dev/null +++ b/core/src/ch/asynk/gdx/tabletop/Drawable.java @@ -0,0 +1,19 @@ +package ch.asynk.gdx.tabletop; + +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); +} |