|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
InputAction defines an interface that sets the criteria for
input actions, the speed of the action is definable and a single method
(performAction) is supplied to execute the action itself.
| Method Summary | |
java.lang.String |
getKey()
|
float |
getSpeed()
getSpeed returns the speed modifier of the action. |
void |
performAction(InputActionEvent evt)
performAction executes the action. |
void |
setKey(java.lang.String key)
|
void |
setSpeed(float speed)
setSpeed sets the speed modifier of this action. |
| Method Detail |
public void performAction(InputActionEvent evt)
performAction executes the action. The InputActionEvent
is supplied to define what keys are pressed, what other actions were
called and the time of the event.
evt - the event that triggered the perform action method.public void setSpeed(float speed)
setSpeed sets the speed modifier of this action.
speed - the speed modifier of the action.public float getSpeed()
getSpeed returns the speed modifier of the action.
public void setKey(java.lang.String key)
public java.lang.String getKey()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||