public class ScoreAnimation extends Animation
Modifier and Type | Field and Description |
---|---|
private double |
area
Current area claimed by the player as
shown by the animation.
|
private long |
last
Timestamp the last animation frame was rendered.
|
private Player |
player
Player whose score to display.
|
private static int |
SCORE_PER_MS
Number of score points to add each millisecond.
|
Constructor and Description |
---|
ScoreAnimation(Player player)
Constructs a new score animation for the given player.
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
render(java.awt.Graphics2D g)
Renders the next frame of this animation.
|
private static final int SCORE_PER_MS
private Player player
private double area
private long last
public ScoreAnimation(Player player)
player
- The player whose score to animate.