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 collisionBox)
Instantiates a new
StaticShadow entity. |
StaticShadow(double x,
double y,
float width,
float height,
StaticShadowType shadowType)
Instantiates a new
StaticShadow entity. |
StaticShadow(int id,
double x,
double y,
float width,
float height,
StaticShadowType shadowType)
Instantiates a new
StaticShadow entity. |
StaticShadow(int id,
java.lang.String name,
double x,
double y,
float width,
float height,
StaticShadowType shadowType)
Instantiates a new
StaticShadow entity. |
StaticShadow(StaticShadowType shadowType)
Instantiates a new
StaticShadow entity. |
StaticShadow(StaticShadowType shadowType,
int offset)
Instantiates a new
StaticShadow entity. |
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, setVisible
public static final java.awt.Color DEFAULT_COLOR
public static final int DEFAULT_OFFSET
public StaticShadow(StaticShadowType shadowType, int offset)
StaticShadow
entity.shadowType
- The type of the static shadow.offset
- The offset for the shadow.public StaticShadow(StaticShadowType shadowType)
StaticShadow
entity.shadowType
- The type of the static shadow.public StaticShadow(double x, double y, float width, float height, StaticShadowType shadowType)
StaticShadow
entity.x
- The x-coordinate of this instance.y
- The y-coordinate of this instance.width
- The width of this instance.height
- The height of this instance.shadowType
- The type of the static shadow.public StaticShadow(int id, double x, double y, float width, float height, StaticShadowType shadowType)
StaticShadow
entity.id
- The id of this entity.x
- The x-coordinate of this instance.y
- The y-coordinate of this instance.width
- The width of this instance.height
- The height of this instance.shadowType
- The type of the static shadow.public StaticShadow(int id, java.lang.String name, double x, double y, float width, float height, StaticShadowType shadowType)
StaticShadow
entity.id
- The id of this entity.name
- The name of this entity.x
- The x-coordinate of this instance.y
- The y-coordinate of this instance.width
- The width of this instance.height
- The height of this instance.shadowType
- The type of the static shadow.public StaticShadow(CollisionBox collisionBox)
StaticShadow
entity.collisionBox
- The collision box from which this shadow instance originates from.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)