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

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

public final class UnitImageAnimation
extends java.lang.Object

Class for in-place animation of units.


Field Summary
private  SimpleZippedAnimation animation
           
private  Location currentLocation
           
private  GUI gui
           
private  Unit unit
           
 
Constructor Summary
UnitImageAnimation(GUI gui, Unit unit, SimpleZippedAnimation animation)
          Constructor
 
Method Summary
 void animate()
          Do the animation.
protected  java.awt.Rectangle getDirtyAnimationArea()
           
 
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

animation

private final SimpleZippedAnimation animation

currentLocation

private final Location currentLocation

gui

private GUI gui
Constructor Detail

UnitImageAnimation

public UnitImageAnimation(GUI gui,
                          Unit unit,
                          SimpleZippedAnimation animation)
Constructor

Parameters:
unit - The unit to be animated.
animation - The animation.
Method Detail

animate

public void animate()
Do the animation.


getDirtyAnimationArea

protected java.awt.Rectangle getDirtyAnimationArea()