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  Canvas canvas
           
private  Tile destinationTile
           
private static java.util.logging.Logger logger
           
private  Tile sourceTile
           
private  Unit unit
           
 
Constructor Summary
UnitMoveAnimation(Canvas canvas, 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

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

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

animate

public void animate()
Do the animation.