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