Class EntityDrawable
- java.lang.Object
-
- com.badlogic.gdx.scenes.scene2d.utils.BaseDrawable
-
- com.badlogic.gdx.scenes.scene2d.utils.TextureRegionDrawable
-
- com.bombinggames.wurfelengine.mapeditor.EntityDrawable
-
public class EntityDrawable extends com.badlogic.gdx.scenes.scene2d.utils.TextureRegionDrawableDraw an entity in projection space.
-
-
Constructor Summary
Constructors Constructor Description EntityDrawable(java.lang.Class<? extends AbstractEntity> type)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddraw(com.badlogic.gdx.graphics.g2d.Batch batch, float x, float y, float width, float height)voiddraw(com.badlogic.gdx.graphics.g2d.Batch batch, float x, float y, float originX, float originY, float width, float height, float scaleX, float scaleY, float rotation)floatgetBottomHeight()floatgetLeftWidth()floatgetMinHeight()floatgetMinWidth()floatgetRightWidth()floatgetTopHeight()-
Methods inherited from class com.badlogic.gdx.scenes.scene2d.utils.BaseDrawable
getName, setBottomHeight, setLeftWidth, setMinHeight, setMinWidth, setName, setRightWidth, setTopHeight, toString
-
Methods inherited from interface com.badlogic.gdx.scenes.scene2d.utils.Drawable
setBottomHeight, setLeftWidth, setMinHeight, setMinWidth, setRightWidth, setTopHeight
-
-
-
-
Constructor Detail
-
EntityDrawable
public EntityDrawable(java.lang.Class<? extends AbstractEntity> type) throws java.lang.InstantiationException, java.lang.IllegalAccessException, java.lang.NoSuchMethodException, java.lang.IllegalArgumentException, java.lang.reflect.InvocationTargetException
- Parameters:
type-- Throws:
java.lang.InstantiationExceptionjava.lang.IllegalAccessExceptionjava.lang.NoSuchMethodExceptionjava.lang.reflect.InvocationTargetExceptionjava.lang.IllegalArgumentException
-
-
Method Detail
-
draw
public void draw(com.badlogic.gdx.graphics.g2d.Batch batch, float x, float y, float width, float height)- Overrides:
drawin classcom.badlogic.gdx.scenes.scene2d.utils.TextureRegionDrawable
-
draw
public void draw(com.badlogic.gdx.graphics.g2d.Batch batch, float x, float y, float originX, float originY, float width, float height, float scaleX, float scaleY, float rotation)- Overrides:
drawin classcom.badlogic.gdx.scenes.scene2d.utils.TextureRegionDrawable- Parameters:
batch-x-y-originX-originY-width-height-scaleX-scaleY-rotation-
-
getLeftWidth
public float getLeftWidth()
- Overrides:
getLeftWidthin classcom.badlogic.gdx.scenes.scene2d.utils.BaseDrawable- Returns:
-
getRightWidth
public float getRightWidth()
- Overrides:
getRightWidthin classcom.badlogic.gdx.scenes.scene2d.utils.BaseDrawable- Returns:
-
getTopHeight
public float getTopHeight()
- Overrides:
getTopHeightin classcom.badlogic.gdx.scenes.scene2d.utils.BaseDrawable- Returns:
-
getBottomHeight
public float getBottomHeight()
- Overrides:
getBottomHeightin classcom.badlogic.gdx.scenes.scene2d.utils.BaseDrawable- Returns:
-
getMinHeight
public float getMinHeight()
- Overrides:
getMinHeightin classcom.badlogic.gdx.scenes.scene2d.utils.BaseDrawable- Returns:
-
getMinWidth
public float getMinWidth()
- Overrides:
getMinWidthin classcom.badlogic.gdx.scenes.scene2d.utils.BaseDrawable- Returns:
-
-