summaryrefslogtreecommitdiffstats
path: root/core/src/ch/asynk/gdx/boardgame/Drawable.java
blob: 618d6a28265d2f2c6dfda797b808a991430b7b4e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
package ch.asynk.gdx.boardgame;

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);
}