net.sf.freecol.client.control
Class InGameInputHandler.UnitMoveAnimationCanvasSwingTask
java.lang.Object
net.sf.freecol.client.control.InGameInputHandler.SwingTask
net.sf.freecol.client.control.InGameInputHandler.NoResultCanvasSwingTask
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.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
unit
private final Unit unit
destinationTile
private final Tile destinationTile
sourceTile
private final Tile sourceTile
focus
private boolean focus
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.
doNoResultWork
protected void doNoResultWork()
- Specified by:
doNoResultWork in class InGameInputHandler.NoResultCanvasSwingTask