public class BlockDrawable
extends com.badlogic.gdx.scenes.scene2d.utils.TextureRegionDrawable
Constructor and Description |
---|
BlockDrawable(int id) |
Modifier and Type | Method and Description |
---|---|
void |
draw(com.badlogic.gdx.graphics.g2d.SpriteBatch batch,
float x,
float y,
float width,
float height) |
float |
getMinHeight() |
float |
getMinWidth() |
getRegion, setRegion
public void draw(com.badlogic.gdx.graphics.g2d.SpriteBatch batch, float x, float y, float width, float height)
draw
in interface com.badlogic.gdx.scenes.scene2d.utils.Drawable
draw
in class com.badlogic.gdx.scenes.scene2d.utils.TextureRegionDrawable
public float getMinHeight()
getMinHeight
in interface com.badlogic.gdx.scenes.scene2d.utils.Drawable
getMinHeight
in class com.badlogic.gdx.scenes.scene2d.utils.BaseDrawable
public float getMinWidth()
getMinWidth
in interface com.badlogic.gdx.scenes.scene2d.utils.Drawable
getMinWidth
in class com.badlogic.gdx.scenes.scene2d.utils.BaseDrawable