net.sf.freecol.client.gui.animation
Class UnitMoveAnimation
java.lang.Object
net.sf.freecol.client.gui.animation.UnitMoveAnimation
final class UnitMoveAnimation
- extends java.lang.Object
Class for the animation of units movement.
|
Method Summary |
void |
animate()
Do the animation. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
logger
private static final java.util.logging.Logger logger
ANIMATION_DELAY
private static final int ANIMATION_DELAY
- See Also:
- Constant Field Values
canvas
private final Canvas canvas
unit
private final Unit unit
sourceTile
private final Tile sourceTile
destinationTile
private final Tile destinationTile
UnitMoveAnimation
public UnitMoveAnimation(Canvas canvas,
Unit unit,
Tile sourceTile,
Tile destinationTile)
- Constructor
- Parameters:
canvas - The Canvas where the animation will be drawn.unit - The Unit to be animated.sourceTile - The Tile the unit is moving from.destinationTile - The Tile the unit is moving to.
animate
public void animate()
- Do the animation.