Search Results for

    Show / Hide Table of Contents

    Class StateMachine

    State machine logic pattern

    Inheritance
    StateMachine
    Assembly: FlaxEngine.dll
    File: Engine/Utilities/StateMachine.h
    Syntax
    public class StateMachine

    Constructors

    ~StateMachine()

    Destructor

    Declaration
    public virtual ~StateMachine()

    StateMachine()

    Init

    Declaration
    public StateMachine()

    Fields

    _currentState

    Declaration
    protected State* _currentState
    Field Value
    State

    _states

    Declaration
    protected Array<State* > _states
    Field Value
    Array<State >

    Methods

    CurrentState()

    Gets current state

    Declaration
    public virtual State* CurrentState()
    Returns
    State

    Current state

    GetStates()

    Gets readonly states array

    Declaration
    public Array<State* >* GetStates() const
    Returns
    Array<State >

    Array with states

    GoToState(int32 stateIndex)

    Go to state

    Declaration
    public void GoToState(int32 stateIndex)
    Parameters
    int32 stateIndex

    Target state index

    GoToState(State* state)

    Go to state

    Declaration
    public virtual void GoToState(State* state)
    Parameters
    State state

    Target state

    switchState(State* nextState)

    Declaration
    protected virtual void switchState(State* nextState)
    Parameters
    State nextState

    • Improve this Doc
    • View Source
    In This Article
    Back to top Copyright © 2012-2024 Wojciech Figat