public class EnemyControl
extends com.almasb.fxgl.ecs.Control
| Modifier and Type | Field and Description |
|---|---|
protected com.almasb.fxgl.entity.component.PositionComponent |
position |
| Constructor and Description |
|---|
EnemyControl() |
| Modifier and Type | Method and Description |
|---|---|
void |
down() |
void |
left() |
void |
onAdded(com.almasb.fxgl.ecs.Entity entity) |
void |
onUpdate(com.almasb.fxgl.ecs.Entity entity,
double tpf) |
void |
right() |
void |
setMoveDirection(MoveDirection moveDir) |
void |
up() |
protected MoveDirection |
updateMoveDirection() |
public void setMoveDirection(MoveDirection moveDir)
public void onAdded(com.almasb.fxgl.ecs.Entity entity)
onAdded in class com.almasb.fxgl.ecs.Moduleprotected MoveDirection updateMoveDirection()
public void onUpdate(com.almasb.fxgl.ecs.Entity entity,
double tpf)
onUpdate in class com.almasb.fxgl.ecs.Controlpublic void up()
public void down()
public void left()
public void right()
Copyright © 2017. All rights reserved.