|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectde.rico.adventure.actions.AbstractAction
public abstract class AbstractAction
This class is the abstract base class for any kind of game action.
| Constructor Summary | |
|---|---|
AbstractAction()
Creates a new game action without a specified entity. |
|
AbstractAction(AbstractEntity e)
Creates a new game action for the specified entity. |
|
| Method Summary | |
|---|---|
abstract void |
draw(javax.media.opengl.GL gl)
This method renders the game action, if needed. |
abstract 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. |
AbstractEntity |
getEntity()
Returns the entity of the game action, if it has one, else null. |
abstract void |
update(long elapsedTime)
This method updates the game action |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractAction()
public AbstractAction(AbstractEntity e)
e - entity for this game action| Method Detail |
|---|
public AbstractEntity getEntity()
null.
nullpublic abstract void finishUp()
public abstract void update(long elapsedTime)
elapsedTime - time between two framespublic abstract void draw(javax.media.opengl.GL gl)
gl -
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||