public interface CollisionObject extends Positionable, Interpolatable
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
|
int |
getId()
Returns the unique id 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
|
addPostionChangeListener, getDistanceTo, getDistanceTo, getX, getY, moveTowards, moveTowards, removePositionChangeListener, setX, setXY, setY
int getId()
void preUpdate()
preUpdate
in interface Interpolatable
void interpolate(float alpha)
interpolate
in interface Interpolatable
alpha
- The alpha value between 0.0 and 1.0void forceTo(float x, float y)
x
- The x coordinate to sety
- The y coordinate to setint getRenderX()
int getRenderY()