|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xith3d.utility.input.EightDirectionsMovement
public class EightDirectionsMovement
Eight directions movement, controlled by the arrow keys, adjustable speed.
| Constructor Summary | |
|---|---|
EightDirectionsMovement(org.jagatoo.input.devices.Keyboard keyboard,
Placeable placeable,
float speed,
Updater updater)
New EightDirectionsMovement |
|
EightDirectionsMovement(Placeable placeable,
float speed,
Updater updater)
New EightDirectionsMovement |
|
| Method Summary | |
|---|---|
float |
getSpeed()
|
void |
setSpeed(float speed)
|
void |
update(long gameTime,
long frameTime,
UpdatingThread.TimingMode timingMode)
Updates this Updatable object. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public EightDirectionsMovement(org.jagatoo.input.devices.Keyboard keyboard,
Placeable placeable,
float speed,
Updater updater)
keyboard - placeable - speed - updater -
public EightDirectionsMovement(Placeable placeable,
float speed,
Updater updater)
placeable - speed - updater - | Method Detail |
|---|
public void setSpeed(float speed)
speed - the speed to setpublic final float getSpeed()
public void update(long gameTime,
long frameTime,
UpdatingThread.TimingMode timingMode)
Updatable
update in interface UpdatablegameTime - the gameTime in MillisecondsframeTime - the frameTime in Milliseconds (needed time for the last frame)timingMode - the TimingMode to use for frameTime.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||