rlgamekit.control
Class ActionKey

java.lang.Object
  extended by rlgamekit.control.ActionKey

public class ActionKey
extends java.lang.Object

A key binding for a game action.


Constructor Summary
ActionKey(int keyCode, boolean needsShift, boolean needsCtrl)
          Bind this action to the given keyCode
 
Method Summary
 boolean equals(java.lang.Object other)
           
 int getKeyCode()
           
 boolean getNeedsCtrl()
           
 boolean getNeedsShift()
           
 int hashCode()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ActionKey

public ActionKey(int keyCode,
                 boolean needsShift,
                 boolean needsCtrl)
Bind this action to the given keyCode

Parameters:
keyCode - The code to trigger this action.
Method Detail

getKeyCode

public int getKeyCode()
Returns:
The key keyCode which this action is bound to.

getNeedsShift

public boolean getNeedsShift()
Returns:
the needsShift

getNeedsCtrl

public boolean getNeedsCtrl()
Returns:
the needsCtrl

equals

public boolean equals(java.lang.Object other)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object