Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## de.rico.engine.input
Class FirstPersonControls

    java.lang.Object
      de.rico.engine.input.FirstPersonControls

    public class FirstPersonControls

extends java.lang.Object

This class encapsulates a first person movement system. The movemets will be time based.

Author:
  Frank Bruns

Constructor Summary
`FirstPersonControls(InputManager im)` Creates a new first person control scheme

Method Summary
`float` | `getSpeedMove()` Returns the value for movement speed.
`void` | `setSpeedMove(float speed)` Sets a value for the movement speed.
`void` | `update(long elapsedTime)` Updates the first person control movements

Methods inherited from class java.lang.Object
`equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### FirstPersonControls

    public FirstPersonControls(InputManager im)

  Creates a new first person control scheme

  Parameters:
    `im` - the input of the game

Method Detail

### setSpeedMove

    public void setSpeedMove(float speed)

  Sets a value for the movement speed.

  Parameters:
    `speed` - movement speed

### getSpeedMove

    public float getSpeedMove()

  Returns the value for movement speed.

  Returns:
    movement speed

### update

    public void update(long elapsedTime)

  Updates the first person control movements

  Parameters:
    `elapsedTime` - time between two frames

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD