rlgamekit.control
Interface GameAction

All Known Implementing Classes:
CloseAction, DropAction, HelpAction, InventoryAction, MoveAction, PickUpAction, QuitAction

public interface GameAction

Interface of all game actions.


Method Summary
 java.lang.String getName()
          Get a human-understandable name for this game action, e.g. to show a comprehensive list of action (names).
 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.
 

Method Detail

getName

java.lang.String getName()
Get a human-understandable name for this game action, e.g. to show a comprehensive list of action (names).


onKeyPressed

void onKeyPressed()
Do whatever this action has to do on a key press. Key presses will be repeated if the player holds down the key.


onKeyReleased

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.