public class StaticShadow extends MapArea
| Modifier and Type | Field and Description |
|---|---|
static java.awt.Color |
DEFAULT_COLOR |
static int |
DEFAULT_OFFSET |
ANY_MESSAGE| Constructor and Description |
|---|
StaticShadow(CollisionBox box) |
StaticShadow(double x,
double y,
float width,
float height,
StaticShadowType shadowType) |
StaticShadow(int id,
double x,
double y,
float width,
float height,
StaticShadowType shadowType) |
StaticShadow(int id,
java.lang.String name,
double x,
double y,
float width,
float height,
StaticShadowType shadowType) |
StaticShadow(StaticShadowType shadowType) |
StaticShadow(StaticShadowType shadowType,
int offset) |
| Modifier and Type | Method and Description |
|---|---|
java.awt.geom.Area |
getArea() |
java.awt.geom.Rectangle2D |
getBoundingBox() |
int |
getOffset() |
CollisionBox |
getOrigin() |
StaticShadowType |
getShadowType() |
void |
setHeight(double height) |
void |
setLocation(java.awt.geom.Point2D location)
Sets the map location.
|
void |
setOffset(int shadowOffset) |
void |
setShadowType(StaticShadowType shadowType) |
void |
setWidth(double width) |
void |
setX(double x) |
void |
setY(double y) |
java.lang.String |
toString() |
actions, addController, addEntityRenderListener, addListener, addTag, addTransformListener, animations, attachControllers, behavior, canRender, detachControllers, getAngle, getCenter, getController, getControllers, getEnvironment, getHeight, getLocation, getMapId, getName, getProperties, getRenderType, getTags, getWidth, getX, getY, hasTag, isLoaded, isVisible, loaded, onMessage, onMessage, onRendered, perform, register, removed, removeEntityRenderedListener, removeEntityRenderListener, removeListener, removeMessageListener, removeTag, removeTransformListener, rendered, rendering, renderWithLayer, sendMessage, setAngle, setController, setLocation, setMapId, setName, setRenderType, setRenderWithLayer, setSize, setVisiblepublic static final java.awt.Color DEFAULT_COLOR
public static final int DEFAULT_OFFSET
public StaticShadow(StaticShadowType shadowType, int offset)
public StaticShadow(StaticShadowType shadowType)
public StaticShadow(double x,
double y,
float width,
float height,
StaticShadowType shadowType)
public StaticShadow(int id,
double x,
double y,
float width,
float height,
StaticShadowType shadowType)
public StaticShadow(int id,
java.lang.String name,
double x,
double y,
float width,
float height,
StaticShadowType shadowType)
public StaticShadow(CollisionBox box)
public StaticShadowType getShadowType()
public void setShadowType(StaticShadowType shadowType)
public void setX(double x)
public void setY(double y)
public void setWidth(double width)
public void setHeight(double height)
public void setLocation(java.awt.geom.Point2D location)
EntitysetLocation in interface IEntitysetLocation in class Entitylocation - the new map locationpublic CollisionBox getOrigin()
public java.awt.geom.Rectangle2D getBoundingBox()
getBoundingBox in interface IEntitygetBoundingBox in class Entitypublic java.awt.geom.Area getArea()
public int getOffset()
public void setOffset(int shadowOffset)