rlgamekit.demo.walkaround.actions
Class PickUpAction

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

public class PickUpAction
extends java.lang.Object
implements GameAction

Game action to pick up an item from the ground.


Constructor Summary
PickUpAction(Player player, MessageDisplayArea messageDisplayArea)
           
 
Method Summary
 java.lang.String getName()
          Get a human-understandable name for this game action.
 void onKeyPressed()
          Do whatever this action has to do on a key press.
 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

PickUpAction

public PickUpAction(Player player,
                    MessageDisplayArea messageDisplayArea)
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()
Description copied from interface: GameAction
Do whatever this action has to do on a key press. Key presses will be repeated if the player holds down the key.

Specified by:
onKeyPressed in interface GameAction

onKeyReleased

public void onKeyReleased()
Description copied from interface: GameAction
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