summaryrefslogtreecommitdiffstats
path: root/core/src/ch/asynk/zproject/engine/Drawable.java
blob: 300dd38ef88f6cdd6dc11fe9647e9343404cc1d5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
package ch.asynk.gdx.board.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);
}