com.planeth.gtroids.control
Class GtAction
java.lang.Object
javax.swing.AbstractAction
com.planeth.gtroids.control.GtAction
- All Implemented Interfaces:
- javax.swing.Action, java.awt.event.ActionListener, java.lang.Cloneable, java.util.EventListener, java.io.Serializable
- public class GtAction
- extends javax.swing.AbstractAction
Encapsulates all Keyboard Action logic for the game
- Author:
- Andreas Grässer, gal@planet-h.com.
created May 30, 2005
- See Also:
KeyInputHelper,
Serialized Form
| Fields inherited from class javax.swing.AbstractAction |
changeSupport, enabled |
| Fields inherited from interface javax.swing.Action |
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SHORT_DESCRIPTION, SMALL_ICON |
|
Constructor Summary |
GtAction(java.lang.String actionType)
Constructor for GpKeyAction. |
| Methods inherited from class javax.swing.AbstractAction |
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PRESSED_SUFFIX
public static final java.lang.String PRESSED_SUFFIX
- See Also:
- Constant Field Values
RELEASED_SUFFIX
public static final java.lang.String RELEASED_SUFFIX
- See Also:
- Constant Field Values
A_LEFT_KEY
public static final java.lang.String A_LEFT_KEY
- See Also:
- Constant Field Values
A_RIGHT_KEY
public static final java.lang.String A_RIGHT_KEY
- See Also:
- Constant Field Values
A_THROTTLE
public static final java.lang.String A_THROTTLE
- See Also:
- Constant Field Values
A_FIRE
public static final java.lang.String A_FIRE
- See Also:
- Constant Field Values
A_BOMB
public static final java.lang.String A_BOMB
- See Also:
- Constant Field Values
A_PAUSE_GAME
public static final java.lang.String A_PAUSE_GAME
- See Also:
- Constant Field Values
A_NEW_GAME
public static final java.lang.String A_NEW_GAME
- See Also:
- Constant Field Values
A_TOGGLE_SOUND
public static final java.lang.String A_TOGGLE_SOUND
- See Also:
- Constant Field Values
GtAction
public GtAction(java.lang.String actionType)
- Constructor for GpKeyAction.
- Parameters:
actionType - the action type for this ActionObject
actionPerformed
public void actionPerformed(java.awt.event.ActionEvent e)
- See Also:
ActionListener.actionPerformed(java.awt.event.ActionEvent)