|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectanimation.AnimationPool
public class AnimationPool
This class is used to manage the animation sequences of a game object
Constructor Summary | |
---|---|
AnimationPool()
Creates a new empty pool of animation sequences. |
Method Summary | |
---|---|
void |
add(java.lang.String name,
java.awt.image.BufferedImage[] images)
Adds an animation to the animation manager |
boolean |
containsAnim(java.lang.String name)
Determines, if the animatio pool contains the animation identified by the specified name |
java.awt.image.BufferedImage[] |
getAnimSequence(java.lang.String name)
Returns the animation sequence that refers to the specified reference name |
void |
remove(java.lang.String name)
Removes an animation sequence from the animation pool |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AnimationPool()
Method Detail |
---|
public java.awt.image.BufferedImage[] getAnimSequence(java.lang.String name)
name
- reference name of the animation
public boolean containsAnim(java.lang.String name)
name
- name of the animation
public void add(java.lang.String name, java.awt.image.BufferedImage[] images)
name
- name refering to the animationimages
- images that form the animationpublic void remove(java.lang.String name)
name
- name of the animation to remove
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |