public class ClaimAnimation extends Animation
Modifier and Type | Field and Description |
---|---|
private float |
dist
The largest distance to a vertex from the clicked point.
|
private static float |
DURATION
Number of milliseconds the animation plays for.
|
private java.awt.geom.Point2D |
loc
The point that was clicked to claim the convex object.
|
private ConvexObject |
obj
The convex object that was claimed.
|
private long |
start
Millisecond time this animation started.
|
Constructor and Description |
---|
ClaimAnimation(ConvexObject selected,
java.awt.geom.Point2D location)
Constructs a new claim animation for the given object.
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
render(java.awt.Graphics2D g)
Renders the next frame of this animation.
|
private static final float DURATION
private long start
private ConvexObject obj
private java.awt.geom.Point2D loc
private float dist
public ClaimAnimation(ConvexObject selected, java.awt.geom.Point2D location)
selected
- The convex object that was claimed.location
- The point that was clicked to claim the object.