de.rico.adventure.actions.custom
Class EnterRoom

java.lang.Object
  extended by de.rico.adventure.actions.AbstractAction
      extended by de.rico.adventure.actions.custom.EnterRoom

public class EnterRoom
extends AbstractAction

This game action can be used to let the player character exit the current room and enter another one.

Author:
Frank Bruns

Constructor Summary
EnterRoom(PlayableCharacter player, Room room, java.lang.String entryPointId, int camPerspId)
          Creates a game action to let the player enter another room.
 
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

EnterRoom

public EnterRoom(PlayableCharacter player,
                 Room room,
                 java.lang.String entryPointId,
                 int camPerspId)
Creates a game action to let the player enter another room.

Parameters:
player - player object
room - room to enter
entryPointId - script id of the entry point to use for entering
camPerspId - id of the camera perspective to use initially
Method Detail

update

public void update(long elapsedTime)
Description copied from class: AbstractAction
This method updates the game action

Specified by:
update in class AbstractAction
Parameters:
elapsedTime - time between two frames

draw

public void draw(javax.media.opengl.GL gl)
Description copied from class: AbstractAction
This method renders the game action, if needed.

Specified by:
draw in class AbstractAction

finishUp

public void finishUp()
Description copied from class: AbstractAction
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.

Specified by:
finishUp in class AbstractAction