public class ArrowControl
extends com.almasb.fxgl.ecs.Control
| Constructor and Description |
|---|
ArrowControl(javafx.geometry.Point2D direction) |
| Modifier and Type | Method and Description |
|---|---|
javafx.geometry.Point2D |
getDirection() |
double |
getSpeed() |
javafx.geometry.Point2D |
getVelocity() |
void |
onAdded(com.almasb.fxgl.ecs.Entity entity) |
void |
onUpdate(com.almasb.fxgl.ecs.Entity entity,
double tpf) |
public javafx.geometry.Point2D getVelocity()
public javafx.geometry.Point2D getDirection()
public double getSpeed()
public void onAdded(com.almasb.fxgl.ecs.Entity entity)
onAdded in class com.almasb.fxgl.ecs.Modulepublic void onUpdate(com.almasb.fxgl.ecs.Entity entity,
double tpf)
onUpdate in class com.almasb.fxgl.ecs.ControlCopyright © 2017. All rights reserved.