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 the animation of units movement.


Field Summary
private  SimpleZippedAnimation animation
           
private  Canvas canvas
           
private  Location currentLocation
           
private  Map.Direction direction
           
private static java.util.logging.Logger logger
           
private  Unit unit
           
private static java.lang.Integer UNIT_LABEL_LAYER
           
 
Constructor Summary
UnitImageAnimation(Canvas canvas, Unit unit, SimpleZippedAnimation animation, Map.Direction direction)
          Constructor
 
Method Summary
 void animate()
           
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

logger

private static final java.util.logging.Logger logger

canvas

private final Canvas canvas

unit

private final Unit unit

animation

private final SimpleZippedAnimation animation

direction

private final Map.Direction direction

currentLocation

private final Location currentLocation

UNIT_LABEL_LAYER

private static final java.lang.Integer UNIT_LABEL_LAYER
Constructor Detail

UnitImageAnimation

public UnitImageAnimation(Canvas canvas,
                          Unit unit,
                          SimpleZippedAnimation animation,
                          Map.Direction direction)
Constructor

Parameters:
canvas - The canvas where the animation will be drawn
unit - The unit to be animated.
animation - The animation.
direction - The Direction of the animation (if applicable).
Method Detail

animate

public void animate()

getDirtyAnimationArea

protected java.awt.Rectangle getDirtyAnimationArea()