public interface CollisionArea extends CollisionObject, Sizeable
Modifier and Type | Method and Description |
---|---|
void |
forceTo(float x,
float y,
float width,
float height)
Sets the current x, y, width and height and force updates the
rendering state to match
|
void |
forceToHeight(float height)
Sets the current height to the specified height and force updates the
rendering bounds to match
|
void |
forceToWidth(float width)
Sets the current width to the specified width and force updates the
rendering bounds to match
|
float |
getRawRenderHeight()
Returns the raw float value used for the render height coordinate
|
float |
getRawRenderWidth()
Returns the raw float value used for the render width coordinate
|
int |
getRenderHeight()
Returns the render height of this object using the set
RenderCoordMode |
int |
getRenderWidth()
Returns the render width of this object using the set
RenderCoordMode |
CollisionArea |
setTo(float x,
float y,
float width,
float height)
Sets the current x, y, width and height
|
dispose, forceTo, getId, getRawRenderX, getRawRenderY, getRenderCoordMode, getRenderX, getRenderY, interpolate, preUpdate, setRenderCoordMode
addSizeChangeListener, contains, contains, contains, getCenterX, getCenterY, getHeight, getMaxX, getMaxY, getMinX, getMinY, getNumberOfSides, getPolygon, getWidth, intersects, intersects, intersectsLineSegment, intersectsLineSegment, isCircle, removeSizeChangeListener, scale, setCenter, setCenterX, setCenterY, setRadius
addPostionChangeListener, getDistanceTo, getDistanceTo, getX, getY, moveTowards, moveTowards, removePositionChangeListener, setX, setXY, setY
CollisionArea setTo(float x, float y, float width, float height)
x
- The x coordinate to sety
- The y coordinate to setwidth
- The width to setheight
- The height to setvoid forceTo(float x, float y, float width, float height)
x
- The x coordinate to sety
- The y coordinate to setwidth
- The width to setheight
- The height to setvoid forceToWidth(float width)
width
- The width to setvoid forceToHeight(float height)
height
- The height to setint getRenderWidth()
RenderCoordMode
int getRenderHeight()
RenderCoordMode
float getRawRenderWidth()
float getRawRenderHeight()