public class FlyMover extends SimpleMover
| Modifier and Type | Field and Description |
|---|---|
protected Key |
downKey |
protected Key |
upKey |
backKey, forwardKey, leftKey, rightKey, speedengine, name, NAME_UNTITLED_ENTITY, parent| Constructor and Description |
|---|
FlyMover(float speed)
Initialize a FlyMover with the default key binding
|
FlyMover(float speed,
Key upKey,
Key downKey)
Initialize a FlyMover with a specific key binding
|
| Modifier and Type | Method and Description |
|---|---|
void |
onAction(KeyEvent event)
When the trigger as triggered.
|
protected void |
registerListener() |
attached, move, moveboxed, getTransform, removed, render, updateclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetName, setEngine, setParentgetEngine, setEnginepublic FlyMover(float speed)
speed - The movement speed on Yprotected void registerListener()
registerListener in class SimpleMoverpublic void onAction(KeyEvent event)
KeyListeneronAction in interface KeyListeneronAction in class SimpleMoverevent - The KeyEventCopyright © 2014. All rights reserved.