|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.rico.adventure.actions.AbstractAction
de.rico.adventure.actions.custom.SetAnimation
public class SetAnimation
This class can be used to set the animation of an entity. The animation will be played continously until another animation is set to the entity.
Constructor Summary | |
---|---|
SetAnimation(AbstractEntity e,
java.lang.String animName,
boolean loop)
Creates a new game action to set an entity's animation. |
Method Summary | |
---|---|
void |
draw(javax.media.opengl.GL gl)
This method renders the game action, if needed. |
void |
finishUp()
Implementations of this method hold code that needs to be called before the game action can be removed from the queue (prematurely) without causing side effects. |
void |
update(long elapsedTime)
This method updates the game action |
Methods inherited from class de.rico.adventure.actions.AbstractAction |
---|
getEntity |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SetAnimation(AbstractEntity e, java.lang.String animName, boolean loop)
e
- entity to set the animation ofanimName
- name of the animation to setloop
- loop the animation? --> true=yes, false=noMethod Detail |
---|
public void draw(javax.media.opengl.GL gl)
AbstractAction
draw
in class AbstractAction
public void finishUp()
AbstractAction
finishUp
in class AbstractAction
public void update(long elapsedTime)
AbstractAction
update
in class AbstractAction
elapsedTime
- time between two frames
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |