net.sf.freecol.client.gui.animation
Class UnitMoveAnimation

java.lang.Object
  extended by net.sf.freecol.client.gui.animation.UnitMoveAnimation

final class UnitMoveAnimation
extends java.lang.Object

Class for the animation of units movement.


Field Summary
private static int ANIMATION_DELAY
           
private  Tile destinationTile
           
private  FreeColClient freeColClient
           
private  GUI gui
           
private  Tile sourceTile
           
private  Unit unit
           
 
Constructor Summary
UnitMoveAnimation(FreeColClient freeColClient, GUI gui, Unit unit, Tile sourceTile, Tile destinationTile)
          Constructor
 
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
 

Field Detail

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
Constructor Detail

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.
Method Detail

animate

public void animate()
Do the animation.