|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jagatoo.input.managers.InputStatesManager
org.xith3d.input.modules.fpih.FPIHInputStatesManager
public class FPIHInputStatesManager
This is a special key-states manager for the FirstPersonInputHandler.
| Field Summary |
|---|
| Fields inherited from class org.jagatoo.input.managers.InputStatesManager |
|---|
CONTROLLERS_SUSPENDED, KEYBOARD_SUSPENDED, MOUSE_AXES_SUSPENDED, MOUSE_BUTTONS_SUSPENDED, MOUSE_WHEEL_SUSPENDED |
| Constructor Summary | |
|---|---|
FPIHInputStatesManager(FirstPersonInputHandler fpih,
java.util.ArrayList<MovementListener> movementListeners)
|
|
| Method Summary | |
|---|---|
boolean |
isAimingDown()
|
boolean |
isAimingUp()
|
boolean |
isCrouching()
|
boolean |
isJumping()
|
boolean |
isMoving()
|
boolean |
isMovingBackward()
|
boolean |
isMovingForward()
|
boolean |
isMovingLeft()
|
boolean |
isMovingRight()
|
boolean |
isTurning()
|
boolean |
isTurningLeft()
|
boolean |
isTurningRight()
|
boolean |
isZooming()
|
boolean |
isZoomingIn()
|
boolean |
isZoomingOut()
|
protected void |
startCrouch()
Makes the player crouch. |
protected boolean |
startJump()
Called, when the player jumped. |
protected void |
startMovement(FPIHInputAction action)
Called when the player starts to move into any direction. |
protected void |
stopCrouch()
Makes the player stand up from crouch. |
protected void |
stopMovement(FPIHInputAction action)
Called when the player stopps to move into any direction. |
void |
update(long nanoTime)
|
| Methods inherited from class org.jagatoo.input.managers.InputStatesManager |
|---|
getActionsByState, getActionsByState, getActionsByState, getActionsByState, getInputState, getInputStatesManipulator, getKeyStatesManipulator, getNumStates, getSimpleInputState, getSuspendMask, hasInputStateChanged, setSuspendMask |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FPIHInputStatesManager(FirstPersonInputHandler fpih,
java.util.ArrayList<MovementListener> movementListeners)
| Method Detail |
|---|
protected void startMovement(FPIHInputAction action)
action - the KeyCommand, that invoked this eventprotected void stopMovement(FPIHInputAction action)
action - the KeyCommand, that invoked this eventprotected boolean startJump()
protected void startCrouch()
protected void stopCrouch()
public final boolean isMovingForward()
public final boolean isMovingBackward()
public final boolean isMovingLeft()
public final boolean isMovingRight()
public final boolean isMoving()
public final boolean isTurningLeft()
public final boolean isTurningRight()
public final boolean isTurning()
public final boolean isAimingUp()
public final boolean isAimingDown()
public final boolean isJumping()
public final boolean isCrouching()
public final boolean isZoomingIn()
public final boolean isZoomingOut()
public final boolean isZooming()
public void update(long nanoTime)
update in class org.jagatoo.input.managers.InputStatesManager
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||