com.golden.gamedev.object.sprite
Class AnimationSprite

java.lang.Object
  |
  +--com.golden.gamedev.object.Sprite
        |
        +--com.golden.gamedev.object.sprite.AnimationSprite

public class AnimationSprite
extends Sprite

Under development, experimental.


Field Summary
 
Fields inherited from class com.golden.gamedev.object.Sprite
height, speedX, speedY, width
 
Constructor Summary
AnimationSprite(SpriteAnimation[] animation, int x, int y)
           
 
Method Summary
 Timer getAnimationTimer()
           
 void render(Graphics2D g, int xs, int ys)
           
 void setAnimationTimer(Timer t)
           
 void update()
           
protected  void updateAnimation()
           
 
Methods inherited from class com.golden.gamedev.object.Sprite
forceX, forceY, getBackground, getHeight, getID, getImage, getLayer, getMovementTimer, getOldX, getOldY, getScreenX, getScreenY, getSpeedX, getSpeedY, getWidth, getX, getY, isActive, isOnScreen, isOnScreen, move, moveX, moveY, render, setActive, setBackground, setID, setImage, setLayer, setLocation, setMovementTimer, setSpeed, setSpeedX, setSpeedY, setX, setY, updateMovement
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AnimationSprite

public AnimationSprite(SpriteAnimation[] animation,
                       int x,
                       int y)
Method Detail

update

public void update()
Overrides:
update in class Sprite

updateAnimation

protected void updateAnimation()

render

public void render(Graphics2D g,
                   int xs,
                   int ys)
Overrides:
render in class Sprite

setAnimationTimer

public void setAnimationTimer(Timer t)

getAnimationTimer

public Timer getAnimationTimer()