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