public class StaticCollisionCircle extends Circle implements CollisionArea
CollisionCircle
implementation.disposed, positionChangeListeners, sizeChangeListeners
Constructor and Description |
---|
StaticCollisionCircle(Circle circle) |
StaticCollisionCircle(float radius) |
StaticCollisionCircle(float centerX,
float centerY,
float radius) |
StaticCollisionCircle(int id,
Circle circle) |
StaticCollisionCircle(int id,
float radius) |
StaticCollisionCircle(int id,
float centerX,
float centerY,
float radius) |
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, contains, copy, dispose, draw, edgeIterator, equals, fill, getBoundingBox, getCenterX, getCenterY, getDistanceFromCenter, getDistanceFromCenter, getDistanceTo, getHeight, getMaxX, getMaxY, getMinX, getMinY, getNumberOfSides, getPolygon, getRadius, getRotation, getWidth, getX, getY, hashCode, intersects, intersects, intersects, intersectsLineSegment, intersectsLineSegment, isCircle, lerp, rotate, rotateAround, scale, set, setCenter, setCenterX, setCenterY, setRadius, setRotation, setRotationAround, setX, setXY, setY, translate
add, 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, subtract
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
dispose
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
public StaticCollisionCircle(float radius)
public StaticCollisionCircle(float centerX, float centerY, float radius)
public StaticCollisionCircle(Circle circle)
public StaticCollisionCircle(int id, float radius)
public StaticCollisionCircle(int id, float centerX, float centerY, float radius)
public StaticCollisionCircle(int id, Circle circle)
public void forceTo(float x, float y, float width, float height)
CollisionArea
forceTo
in interface CollisionArea
x
- The x coordinate to sety
- The y coordinate to setpublic int getId()
CollisionObject
getId
in interface CollisionObject
public void preUpdate()
CollisionObject
preUpdate
in interface CollisionObject
preUpdate
in interface Interpolatable
public void interpolate(float alpha)
CollisionObject
interpolate
in interface CollisionObject
interpolate
in interface Interpolatable
alpha
- The alpha value between 0.0 and 1.0public void forceTo(float x, float y)
CollisionObject
forceTo
in interface CollisionObject
x
- The x coordinate to sety
- The y coordinate to setpublic int getRenderX()
CollisionObject
getRenderX
in interface CollisionObject
public int getRenderY()
CollisionObject
getRenderY
in interface CollisionObject
public int getRenderWidth()
CollisionArea
getRenderWidth
in interface CollisionArea
public int getRenderHeight()
CollisionArea
getRenderHeight
in interface CollisionArea