diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2014-10-15 11:23:55 +0200 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2014-10-15 11:23:55 +0200 |
commit | 488ff296ed4c415c611ace87e244f398afa8d065 (patch) | |
tree | ba6540a9905b6413dd2b72f12a4bac3724ab1966 /core/src/ch/asynk/tankontank/engine/gfx | |
parent | 7d2af8ef387acb34b82d44610b6ac79724aade21 (diff) | |
download | RustAndDust-488ff296ed4c415c611ace87e244f398afa8d065.zip RustAndDust-488ff296ed4c415c611ace87e244f398afa8d065.tar.gz |
Moveable interface comes in once again
Diffstat (limited to 'core/src/ch/asynk/tankontank/engine/gfx')
-rw-r--r-- | core/src/ch/asynk/tankontank/engine/gfx/Drawable.java | 1 | ||||
-rw-r--r-- | core/src/ch/asynk/tankontank/engine/gfx/Moveable.java | 12 |
2 files changed, 12 insertions, 1 deletions
diff --git a/core/src/ch/asynk/tankontank/engine/gfx/Drawable.java b/core/src/ch/asynk/tankontank/engine/gfx/Drawable.java index 0338727..433a019 100644 --- a/core/src/ch/asynk/tankontank/engine/gfx/Drawable.java +++ b/core/src/ch/asynk/tankontank/engine/gfx/Drawable.java @@ -6,6 +6,5 @@ import com.badlogic.gdx.graphics.glutils.ShapeRenderer; public interface Drawable { public void draw(Batch batch); - public void drawDebug(ShapeRenderer debugShapes); } diff --git a/core/src/ch/asynk/tankontank/engine/gfx/Moveable.java b/core/src/ch/asynk/tankontank/engine/gfx/Moveable.java new file mode 100644 index 0000000..238305e --- /dev/null +++ b/core/src/ch/asynk/tankontank/engine/gfx/Moveable.java @@ -0,0 +1,12 @@ +package ch.asynk.tankontank.engine.gfx; + +public interface Moveable extends Drawable +{ + public float getX(); + public float getY(); + public float getWidth(); + public float getHeight(); + public float getRotation(); + public void setPosition(float x, float y); + public void setPosition(float x, float y, float r); +} |