|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.rico.engine.input.FirstPersonControls
public class FirstPersonControls
This class encapsulates a first person movement system. The movemets will be time based.
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 |
---|
public FirstPersonControls(InputManager im)
im
- the input of the gameMethod Detail |
---|
public void setSpeedMove(float speed)
speed
- movement speedpublic float getSpeedMove()
public void update(long elapsedTime)
elapsedTime
- time between two frames
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |