public class FSMControl<T extends com.almasb.fxgl.ecs.Entity>
extends com.almasb.fxgl.ecs.Control
| Constructor and Description |
|---|
FSMControl(Class<S> stateType,
S initialState) |
| Modifier and Type | Method and Description |
|---|---|
void |
changeState(com.almasb.fxgl.ai.fsm.State<T> newState) |
void |
onAdded(com.almasb.fxgl.ecs.Entity entity) |
void |
onUpdate(com.almasb.fxgl.ecs.Entity entity,
double tpf) |
public FSMControl(Class<S> stateType, S initialState)
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.Controlpublic void changeState(com.almasb.fxgl.ai.fsm.State<T> newState)
Copyright © 2017. All rights reserved.