Example usage for com.badlogic.gdx.ai.fsm DefaultStateMachine DefaultStateMachine

List of usage examples for com.badlogic.gdx.ai.fsm DefaultStateMachine DefaultStateMachine

Introduction

In this page you can find the example usage for com.badlogic.gdx.ai.fsm DefaultStateMachine DefaultStateMachine.

Prototype

public DefaultStateMachine(E owner, State<E> initialState, State<E> globalState) 

Source Link

Document

Creates a DefaultStateMachine for the specified owner, initial state and global state.

Usage

From source file:com.badlogic.gdx.ai.tests.fsm.Elsa.java

License:Apache License

public Elsa(Bob bob) {
    stateMachine = new DefaultStateMachine<Elsa>(this, ElsaState.DO_HOUSE_WORK, ElsaState.GLOBAL_STATE);
    this.bob = bob;
}