net.sf.freecol.client.gui.animation
Class UnitImageAnimation
java.lang.Object
net.sf.freecol.client.gui.animation.UnitImageAnimation
public final class UnitImageAnimation
- extends java.lang.Object
Class for the animation of units movement.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
UnitImageAnimation
public UnitImageAnimation(Canvas canvas,
Unit unit,
SimpleZippedAnimation animation,
Map.Direction direction)
- Constructor
- Parameters:
canvas - The canvas where the animation will be drawnunit - The unit to be animated.animation - The animation.direction - The Direction of the animation (if applicable).
animate
public void animate()
getDirtyAnimationArea
protected java.awt.Rectangle getDirtyAnimationArea()