public class LiftControl extends AbstractControl
| Constructor and Description |
|---|
LiftControl(javafx.util.Duration duration,
double distance,
boolean goingUp)
Constructs lift control (moving vertically).
|
| Modifier and Type | Method and Description |
|---|---|
void |
onAdded(Entity entity)
Called when this control is added to entity.
|
void |
onUpdate(Entity entity,
double tpf)
Called on entity world update tick.
|
public LiftControl(javafx.util.Duration duration,
double distance,
boolean goingUp)
duration - duration going (one way)distance - the distance entity travels (one way)goingUp - if true, entity starts going up, otherwise downpublic void onAdded(Entity entity)
ControlonAdded in interface ControlonAdded in class AbstractControlentity - the entity to which this control was addedCopyright © 2017. All rights reserved.