public class QuadTreeAwareStaticCollisionBox extends StaticCollisionBox implements QuadTreeAware
collisionsdisposed, geometry, positionChangeListeners, sizeChangeListeners| Constructor and Description |
|---|
QuadTreeAwareStaticCollisionBox() |
QuadTreeAwareStaticCollisionBox(float x,
float y,
float width,
float height) |
QuadTreeAwareStaticCollisionBox(int id) |
QuadTreeAwareStaticCollisionBox(int id,
Collisions collisions) |
QuadTreeAwareStaticCollisionBox(int id,
float x,
float y,
float width,
float height) |
QuadTreeAwareStaticCollisionBox(int id,
Rectangle rectangle) |
QuadTreeAwareStaticCollisionBox(Rectangle rectangle) |
| Modifier and Type | Method and Description |
|---|---|
QuadTree |
getQuad()
Returns the
QuadTree where this object is located. |
protected void |
release() |
void |
setQuad(QuadTree quadTree)
Sets the
QuadTree where this object is located. |
dispose, equals, forceTo, forceTo, forceToHeight, forceToWidth, getId, getRawRenderHeight, getRawRenderWidth, getRawRenderX, getRawRenderY, getRenderCoordMode, getRenderHeight, getRenderWidth, getRenderX, getRenderY, hashCode, init, interpolate, preUpdate, setRenderCoordMode, setTocontains, contains, contains, contains, contains, copy, draw, edgeIterator, fill, getCenterX, getCenterY, getDistanceTo, getHeight, getMaxX, getMaxY, getMinX, getMinY, getNumberOfSides, getPolygon, getRotation, getVertices, getWidth, getX, getY, intersection, intersects, intersects, intersects, intersects, intersects, intersects, intersectsIgnoringEdges, intersectsLineSegment, intersectsLineSegment, isCircle, lerp, lerp, 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, waitaddSizeChangeListener, clearSizeChangeListeners, contains, contains, contains, getCenterX, getCenterY, getHeight, getMaxX, getMaxY, getMinX, getMinY, getNumberOfSides, getPolygon, getWidth, intersects, intersects, intersectsIgnoringEdges, intersectsLineSegment, intersectsLineSegment, isCircle, notifySizeChangeListeners, removeSizeChangeListener, scale, setCenter, setCenterX, setCenterY, setRadiusaddPostionChangeListener, clearPositionChangeListeners, getDistanceTo, getDistanceTo, getX, getY, moveTowards, moveTowards, notifyPositionChangeListeners, removePositionChangeListener, setX, setXY, setYpublic QuadTreeAwareStaticCollisionBox()
public QuadTreeAwareStaticCollisionBox(float x,
float y,
float width,
float height)
public QuadTreeAwareStaticCollisionBox(Rectangle rectangle)
public QuadTreeAwareStaticCollisionBox(int id)
public QuadTreeAwareStaticCollisionBox(int id,
Rectangle rectangle)
public QuadTreeAwareStaticCollisionBox(int id,
float x,
float y,
float width,
float height)
public QuadTreeAwareStaticCollisionBox(int id,
Collisions collisions)
protected void release()
release in class StaticCollisionBoxpublic void setQuad(QuadTree quadTree)
QuadTreeAwareQuadTree where this object is located. Automatically called by CollisionDetection.add(T) methods.
NOTE: Internal use only.setQuad in interface QuadTreeAwarequadTree - The QuadTree where this object is located.public QuadTree getQuad()
QuadTreeAwareQuadTree where this object is located. You can call this method in order to get the QuadTree on which you can do QuadTreeSearchDirection.UPWARDS search.getQuad in interface QuadTreeAware