Class StateBaseAbstract

The base implementation of the State interface.

Hierarchy

Implements

Constructors

  • Creates the state.

    Parameters

    • stateMachine: FSM

      The FSM that will contain the state.

    • stateName: string

      The name of this state.

    Returns StateBase

Properties

fsm: FSM

The FSM that contains the state.

name: string

The name of the state.

Methods

  • Checks whether the starting state of the fsm is this state. In this case, the fsm is notified about the starting of the FSM.

    Returns void

    Throws

    CancelFSMException

  • Uninstall (ie flushes) the state. Useful to clear data. The state must not be used after that.

    Returns void

Generated using TypeDoc