|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectvooga.engine.util.AnimationUtil
public class AnimationUtil
Automatically performs common tasks related to animation to reduce code repetition.
Field Summary | |
---|---|
static long |
defaultAnimationDelay
|
Constructor Summary | |
---|---|
AnimationUtil()
|
Method Summary | |
---|---|
static AnimatedSprite |
getInitializedAnimatedSprite(java.awt.image.BufferedImage[] images)
|
static void |
initializeAnimatedSprite(AnimatedSprite sprite,
long delay,
boolean loop)
Set the attributes for an animated sprite |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static long defaultAnimationDelay
Constructor Detail |
---|
public AnimationUtil()
Method Detail |
---|
public static AnimatedSprite getInitializedAnimatedSprite(java.awt.image.BufferedImage[] images)
public static void initializeAnimatedSprite(AnimatedSprite sprite, long delay, boolean loop)
sprite
- animated sprite objectdelay
- animation delayloop
- loop animation
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |