rlgamekit.demo.walkaround.actions
Class CloseAction

java.lang.Object
  extended by rlgamekit.demo.walkaround.actions.CloseAction
All Implemented Interfaces:
GameAction

public class CloseAction
extends java.lang.Object
implements GameAction

Trigger a "close" type action on the next move.


Constructor Summary
CloseAction(Player player)
           
 
Method Summary
 java.lang.String getName()
          Get a human-understandable name for this game action.
 void onKeyPressed()
          Close something with the next player move command.
 void onKeyReleased()
          Do whatever this action has to do on a key release.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CloseAction

public CloseAction(Player player)
Method Detail

getName

public java.lang.String getName()
Get a human-understandable name for this game action.

Specified by:
getName in interface GameAction

onKeyPressed

public void onKeyPressed()
Close something with the next player move command.

Specified by:
onKeyPressed in interface GameAction

onKeyReleased

public void onKeyReleased()
Do whatever this action has to do on a key release. There is only one key release event generated after a (series) of key press events.

Specified by:
onKeyReleased in interface GameAction