diff options
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); +} |