rlgamekit.demo.walkaround.actions
Class HelpAction

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

public class HelpAction
extends java.lang.Object
implements GameAction

Show a help message with all key bindings.


Constructor Summary
HelpAction(javax.swing.JFrame frame, KeyInputHandler keyInputHandler)
           
 
Method Summary
 java.lang.String getName()
          Get a human-understandable name for this game action.
 void onKeyPressed()
          Show a help message with all key bindings.
 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

HelpAction

public HelpAction(javax.swing.JFrame frame,
                  KeyInputHandler keyInputHandler)
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()
Show a help message with all key bindings.

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