public class StaticCollisionBox extends Rectangle implements CollisionArea
CollisionBox implementation.disposed, geometry, positionChangeListeners, sizeChangeListeners| Constructor and Description |
|---|
StaticCollisionBox() |
StaticCollisionBox(float x,
float y,
float width,
float height) |
StaticCollisionBox(int id) |
StaticCollisionBox(int id,
float x,
float y,
float width,
float height) |
StaticCollisionBox(int id,
Rectangle rectangle) |
StaticCollisionBox(Rectangle rectangle) |
| Modifier and Type | Method and Description |
|---|---|
void |
forceTo(float x,
float y)
Sets the current x and y coordinate to the specified x and y and force updates the
rendering position to match
|
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
|
int |
getId()
Returns the unique id of this object
|
int |
getRenderHeight()
Returns the render height of this object
|
int |
getRenderWidth()
Returns the render width of this object
|
int |
getRenderX()
Returns the render x coordinate of this object
|
int |
getRenderY()
Returns the render y coordinate of this object
|
void |
interpolate(float alpha)
Called during interpolate phase each interpolate()
|
void |
preUpdate()
Called at the start of each update() before any changes are made to this object
|
contains, contains, contains, contains, contains, copy, dispose, draw, edgeIterator, equals, fill, getCenterX, getCenterY, getDistanceTo, getHeight, getMaxX, getMaxY, getMinX, getMinY, getNumberOfSides, getPolygon, getRotation, getVertices, getWidth, getX, getY, hashCode, intersection, intersects, intersects, intersects, intersects, intersects, intersects, intersectsLineSegment, intersectsLineSegment, isCircle, lerp, rotate, rotateAround, scale, set, set, setCenter, setCenterX, setCenterY, setHeight, setRadius, setRotation, setRotationAround, setSize, setSize, setWidth, setX, setXY, setXY, setY, toString, translateadd, addPostionChangeListener, addSizeChangeListener, clearPositionChangeListeners, clearPositionListeners, clearPositionListeners, clearSizeChangeListeners, clearSizeListeners, clearSizeListeners, getDistanceTo, intersects, moveTowards, moveTowards, notifyPositionChangeListeners, notifyPositionListeners, notifyPositionListeners, notifySizeChangeListeners, notifySizeListeners, notifySizeListeners, removePositionChangeListener, removePositionListener, removePositionListener, removeSizeChangeListener, removeSizeListener, removeSizeListener, setDisposed, setRotationAround, subtractclone, finalize, getClass, notify, notifyAll, wait, wait, waitdisposeaddSizeChangeListener, contains, contains, contains, getCenterX, getCenterY, getHeight, getMaxX, getMaxY, getMinX, getMinY, getNumberOfSides, getPolygon, getWidth, intersects, intersects, intersectsLineSegment, intersectsLineSegment, isCircle, removeSizeChangeListener, scale, setCenter, setCenterX, setCenterY, setRadiusaddPostionChangeListener, getDistanceTo, getDistanceTo, getX, getY, moveTowards, moveTowards, removePositionChangeListener, setX, setXY, setYpublic StaticCollisionBox()
public StaticCollisionBox(float x,
float y,
float width,
float height)
public StaticCollisionBox(Rectangle rectangle)
public StaticCollisionBox(int id)
public StaticCollisionBox(int id,
float x,
float y,
float width,
float height)
public StaticCollisionBox(int id,
Rectangle rectangle)
public void forceTo(float x,
float y,
float width,
float height)
CollisionAreaforceTo in interface CollisionAreax - The x coordinate to sety - The y coordinate to setpublic int getId()
CollisionObjectgetId in interface CollisionObjectpublic void preUpdate()
CollisionObjectpreUpdate in interface CollisionObjectpreUpdate in interface Interpolatablepublic void interpolate(float alpha)
CollisionObjectinterpolate in interface CollisionObjectinterpolate in interface Interpolatablealpha - The alpha value between 0.0 and 1.0public void forceTo(float x,
float y)
CollisionObjectforceTo in interface CollisionObjectx - The x coordinate to sety - The y coordinate to setpublic int getRenderX()
CollisionObjectgetRenderX in interface CollisionObjectpublic int getRenderY()
CollisionObjectgetRenderY in interface CollisionObjectpublic int getRenderWidth()
CollisionAreagetRenderWidth in interface CollisionAreapublic int getRenderHeight()
CollisionAreagetRenderHeight in interface CollisionArea