diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2018-07-06 14:05:41 +0200 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2018-07-06 14:05:41 +0200 |
commit | 620077ed656885cb558e5644c75a262346d512aa (patch) | |
tree | 0a276aa6e5d62d873b29b71b8f8c20c272d0f31d /core/src/ch/asynk/zproject/engine/Drawable.java | |
parent | 80cde5a9822b7beb509df1904b11c30be4f22cac (diff) | |
download | gdx-boardgame-620077ed656885cb558e5644c75a262346d512aa.zip gdx-boardgame-620077ed656885cb558e5644c75a262346d512aa.tar.gz |
add engine/ui
- interfaces Drawable and Touchable
- basic ui widgets
Diffstat (limited to 'core/src/ch/asynk/zproject/engine/Drawable.java')
-rw-r--r-- | core/src/ch/asynk/zproject/engine/Drawable.java | 19 |
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); +} |