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 |
ANIMATION_DELAY
private static final int ANIMATION_DELAY
- See Also:
- Constant Field Values
unit
private final Unit unit
sourceTile
private final Tile sourceTile
destinationTile
private final Tile destinationTile
gui
private GUI gui
freeColClient
private FreeColClient freeColClient
UnitMoveAnimation
public UnitMoveAnimation(FreeColClient freeColClient,
GUI gui,
Unit unit,
Tile sourceTile,
Tile destinationTile)
- Constructor
- Parameters:
canvas - The Canvas to draw the animation on.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.