|
|||||||||
| 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.MoveDown
public class MoveDown
This concurrent game action can be used to move an entity downwards for a certain time with a certain speed.
| Constructor Summary | |
|---|---|
MoveDown(AbstractEntity entity,
float speed,
int duration)
Moves the specified entity downwards with the specified speed and time. |
|
| 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 MoveDown(AbstractEntity entity,
float speed,
int duration)
entity - entity to movespeed - movement speedduration - duration of movement| Method Detail |
|---|
public void update(long elapsedTime)
AbstractAction
update in class AbstractActionelapsedTime - time between two framespublic void draw(javax.media.opengl.GL gl)
AbstractAction
draw in class AbstractActionpublic void finishUp()
AbstractAction
finishUp in class AbstractAction
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||