GTGE API

com.golden.gamedev.object.sprite
Class VolatileSprite

java.lang.Object
  extended by com.golden.gamedev.object.Sprite
      extended by com.golden.gamedev.object.AnimatedSprite
          extended by com.golden.gamedev.object.sprite.AdvanceSprite
              extended by com.golden.gamedev.object.sprite.VolatileSprite
All Implemented Interfaces:
Serializable

public class VolatileSprite
extends AdvanceSprite

One time animation sprite, the sprite is animated once, and then disappeared, suitable for explosion type sprite.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.golden.gamedev.object.Sprite
height, width
 
Constructor Summary
VolatileSprite(BufferedImage[] image, double x, double y)
          Creates new VolatileSprite.
 
Method Summary
 void update(long elapsedTime)
          Updates this sprite.
 
Methods inherited from class com.golden.gamedev.object.sprite.AdvanceSprite
animationChanged, getAnimationFrame, getDirection, getStatus, render, setAnimation, setAnimationFrame, setDirection, setStatus
 
Methods inherited from class com.golden.gamedev.object.AnimatedSprite
getAnimationTimer, getFinishAnimationFrame, getFrame, getImage, getImage, getImages, getStartAnimationFrame, isAnimate, isLoopAnim, setAnimate, setAnimationFrame, setAnimationTimer, setFrame, setImage, setImages, setLoopAnim, updateAnimation
 
Methods inherited from class com.golden.gamedev.object.Sprite
addHorizontalSpeed, addVerticalSpeed, forceX, forceY, getBackground, getDataID, getDistance, getHeight, getHorizontalSpeed, getID, getLayer, getOldX, getOldY, getScreenX, getScreenY, getVerticalSpeed, getWidth, getX, getY, isActive, isImmutable, isOnScreen, isOnScreen, move, moveTo, moveX, moveY, render, setActive, setBackground, setDataID, setHorizontalSpeed, setID, setImmutable, setLayer, setLocation, setMovement, setSpeed, setVerticalSpeed, setX, setY, updateMovement
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VolatileSprite

public VolatileSprite(BufferedImage[] image,
                      double x,
                      double y)
Creates new VolatileSprite.

Method Detail

update

public void update(long elapsedTime)
Description copied from class: Sprite
Updates this sprite.

Overrides:
update in class AnimatedSprite

GTGE API

Copyright © 2003-2005 Golden T Studios. All rights reserved. Use is subject to license terms.
GoldenStudios.or.id