public class StickyForce extends Force
| Constructor and Description |
|---|
StickyForce(IEntity forceEntity,
float strength,
float size)
Instantiates a new sticky force.
|
StickyForce(java.awt.geom.Point2D center,
float strength,
float size) |
| Modifier and Type | Method and Description |
|---|---|
IEntity |
getForceEntiy()
Gets the force entiy.
|
java.awt.geom.Point2D |
getLocation()
Gets the location.
|
cancelOnCollision, cancelOnReached, end, getStrength, hasEnded, hasReached, setCancelOnCollision, setCancelOnReached, setLocationpublic StickyForce(IEntity forceEntity, float strength, float size)
forceEntity - The entity to who's location this force will be boundstrength - The strength/intensity of this forcesize - The size of this forcepublic StickyForce(java.awt.geom.Point2D center,
float strength,
float size)
public IEntity getForceEntiy()
public java.awt.geom.Point2D getLocation()
ForcegetLocation in class Force