net.sf.freecol.client.control
Class InGameInputHandler.UnitMoveAnimationCanvasSwingTask

java.lang.Object
  extended by net.sf.freecol.client.control.InGameInputHandler.SwingTask
      extended by net.sf.freecol.client.control.InGameInputHandler.NoResultCanvasSwingTask
          extended by net.sf.freecol.client.control.InGameInputHandler.UnitMoveAnimationCanvasSwingTask
All Implemented Interfaces:
java.lang.Runnable
Enclosing class:
InGameInputHandler

 class InGameInputHandler.UnitMoveAnimationCanvasSwingTask
extends InGameInputHandler.NoResultCanvasSwingTask

This task plays an unit movement animation in the Canvas.


Field Summary
private  Tile destinationTile
           
private  boolean focus
           
private  Tile sourceTile
           
private  Unit unit
           
 
Constructor Summary
InGameInputHandler.UnitMoveAnimationCanvasSwingTask(Unit unit, Tile sourceTile, Tile destinationTile, boolean focus)
          Constructor.
 
Method Summary
protected  void doNoResultWork()
           
 
Methods inherited from class net.sf.freecol.client.control.InGameInputHandler.NoResultCanvasSwingTask
doWork
 
Methods inherited from class net.sf.freecol.client.control.InGameInputHandler.SwingTask
getResult, invokeAndWait, invokeLater, invokeSpecial, run
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

unit

private final Unit unit

destinationTile

private final Tile destinationTile

sourceTile

private final Tile sourceTile

focus

private boolean focus
Constructor Detail

InGameInputHandler.UnitMoveAnimationCanvasSwingTask

public InGameInputHandler.UnitMoveAnimationCanvasSwingTask(Unit unit,
                                                           Tile sourceTile,
                                                           Tile destinationTile,
                                                           boolean focus)
Constructor. Play the unit movement animation, optionally focusing on the source tile.

Parameters:
unit - The Unit that is moving.
sourceTile - The Tile from which to move.
destinationTile - The Tile to move to.
focus - Focus on the source tile before the animation.
Method Detail

doNoResultWork

protected void doNoResultWork()
Specified by:
doNoResultWork in class InGameInputHandler.NoResultCanvasSwingTask