public class EntityDrawable
extends com.badlogic.gdx.scenes.scene2d.utils.TextureRegionDrawable
Constructor and Description |
---|
EntityDrawable(java.lang.Class<? extends AbstractEntity> type) |
Modifier and Type | Method and Description |
---|---|
void |
draw(com.badlogic.gdx.graphics.g2d.Batch batch,
float x,
float y,
float width,
float height) |
float |
getBottomHeight() |
float |
getLeftWidth() |
float |
getRightWidth() |
float |
getTopHeight() |
draw, getRegion, setRegion, tint
getMinHeight, getMinWidth, getName, setBottomHeight, setLeftWidth, setMinHeight, setMinWidth, setName, setRightWidth, setTopHeight, toString
public EntityDrawable(java.lang.Class<? extends AbstractEntity> type)
public void draw(com.badlogic.gdx.graphics.g2d.Batch 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 getLeftWidth()
getLeftWidth
in interface com.badlogic.gdx.scenes.scene2d.utils.Drawable
getLeftWidth
in class com.badlogic.gdx.scenes.scene2d.utils.BaseDrawable
public float getRightWidth()
getRightWidth
in interface com.badlogic.gdx.scenes.scene2d.utils.Drawable
getRightWidth
in class com.badlogic.gdx.scenes.scene2d.utils.BaseDrawable
public float getTopHeight()
getTopHeight
in interface com.badlogic.gdx.scenes.scene2d.utils.Drawable
getTopHeight
in class com.badlogic.gdx.scenes.scene2d.utils.BaseDrawable
public float getBottomHeight()
getBottomHeight
in interface com.badlogic.gdx.scenes.scene2d.utils.Drawable
getBottomHeight
in class com.badlogic.gdx.scenes.scene2d.utils.BaseDrawable