vooga.engine.util
Class AnimationUtil

java.lang.Object
  extended by vooga.engine.util.AnimationUtil

public class AnimationUtil
extends java.lang.Object

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

defaultAnimationDelay

public static long defaultAnimationDelay
Constructor Detail

AnimationUtil

public AnimationUtil()
Method Detail

getInitializedAnimatedSprite

public static AnimatedSprite getInitializedAnimatedSprite(java.awt.image.BufferedImage[] images)

initializeAnimatedSprite

public static void initializeAnimatedSprite(AnimatedSprite sprite,
                                            long delay,
                                            boolean loop)
Set the attributes for an animated sprite

Parameters:
sprite - animated sprite object
delay - animation delay
loop - loop animation