| 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(float height) |
void |
setLocation(java.awt.geom.Point2D location)
Sets the map location.
|
void |
setOffset(int shadowOffset) |
void |
setShadowType(StaticShadowType shadowType) |
void |
setWidth(float width) |
void |
setX(double x) |
void |
setY(double y) |
java.lang.String |
toString() |
addController, addListener, addMessageListener, addMessageListener, addTag, addTransformListener, attachControllers, detachControllers, getAngle, getAnimationController, getBehaviorController, getCenter, getController, getControllers, getHeight, getLocation, getMapId, getName, getProperties, getRenderType, getTags, getWidth, getX, getY, hasTag, loaded, removed, removeListener, removeMessageListener, removeTag, removeTransformListener, sendMessage, setAngle, setController, setLocation, setMapId, setName, setProperties, setRenderType, setSizepublic 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(float width)
public void setHeight(float 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)