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, addListener, addMessageListener, addMessageListener, addTag, addTransformListener, attachControllers, detachControllers, getAngle, getAnimationController, getBehaviorController, getCenter, getController, getControllers, getEnvironment, getHeight, getLocation, getMapId, getName, getProperties, getRenderType, getTags, getWidth, getX, getY, hasTag, isLoaded, loaded, perform, register, removed, removeListener, removeMessageListener, removeTag, removeTransformListener, renderWithLayer, sendMessage, setAngle, setController, setLocation, setMapId, setName, setRenderType, setRenderWithLayer, setSize
public 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)
Entity
setLocation
in interface IEntity
setLocation
in class Entity
location
- the new map locationpublic CollisionBox getOrigin()
public java.awt.geom.Rectangle2D getBoundingBox()
getBoundingBox
in interface IEntity
getBoundingBox
in class Entity
public java.awt.geom.Area getArea()
public int getOffset()
public void setOffset(int shadowOffset)