Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## de.rico.adventure.actions
Class AbstractAction

    java.lang.Object
      de.rico.adventure.actions.AbstractAction

Direct Known Subclasses:
  AbortCloseUp, CallScriptedMethod, Delay, DeselectInventoryItem, EnterRoom, FadeEntityToTransparent, FadeIn, FadeOut, MoveBackward, MoveDown, MoveForward, MoveLeft, MoveRight, MoveUp, PickUp, PlayAnimation, PlayCameraFlight, PlayMP3, RunCode, Say, SetAnimation, SetChapter, SetToCamera, SetToCloseUp, SetToGameState, ShowScreen, Walk

    public abstract class AbstractAction

extends java.lang.Object

This class is the abstract base class for any kind of game action.

Author:
  Frank Bruns

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

### AbstractAction

    public AbstractAction()

  Creates a new game action without a specified entity.

### AbstractAction

    public AbstractAction(AbstractEntity e)

  Creates a new game action for the specified entity.

  Parameters:
    `e` - entity for this game action

Method Detail

### getEntity

    public AbstractEntity getEntity()

  Returns the entity of the game action, if it has one, else `null`.

  Returns:
    entity of the game action, or `null`

### finishUp

    public 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.

### update

    public abstract void update(long elapsedTime)

  This method updates the game action

  Parameters:
    `elapsedTime` - time between two frames

### draw

    public abstract void draw(javax.media.opengl.GL gl)

  This method renders the game action, if needed.

  Parameters:
    `gl` -

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD