|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.sf.freecol.client.gui.animation.Animations
public class Animations
A facade for animations.
| Constructor Summary | |
|---|---|
Animations()
|
|
| Method Summary | |
|---|---|
static int |
getAnimationSpeed(Canvas canvas,
Unit unit)
Common utility routine to retrieve animation speed. |
static void |
unitAttack(Canvas canvas,
Unit attacker,
Unit defender,
boolean success)
Animates a unit attack. |
static void |
unitMove(Canvas canvas,
Unit unit,
Tile source,
Tile destination)
Animates a unit move. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Animations()
| Method Detail |
|---|
public static void unitMove(Canvas canvas,
Unit unit,
Tile source,
Tile destination)
canvas - The Canvas to draw the animation on.unit - The Unit to be animated.source - The source Tile for the unit.destination - The destination Tile for the unit.
public static void unitAttack(Canvas canvas,
Unit attacker,
Unit defender,
boolean success)
canvas - The Canvas to draw the animation on.attacker - The Unit that is attacking.defender - The Unit that is defending.success - Did the attack succeed?
public static int getAnimationSpeed(Canvas canvas,
Unit unit)
canvas - The Canvas to draw the animation on.unit - the Unit to be animated.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||