Table of Contents

Class State

Namespace
LibGameAI.FSMs
Assembly
FSMs.dll

A FSM state.

public class State
Inheritance
State
Inherited Members

Constructors

State(string, Action, Action, Action)

Create a new state.

public State(string name, Action entryActions, Action stateActions, Action exitActions)

Parameters

name string

Name of the FSM state.

entryActions Action

Actions to perform when entering this state.

stateActions Action

Actions to perform while in this state.

exitActions Action

Actions to perform when exiting this state.

Properties

EntryActions

Actions to perform when entering this state.

public Action EntryActions { get; }

Property Value

Action

ExitActions

Actions to perform when exiting this state.

public Action ExitActions { get; }

Property Value

Action

Name

Name of the FSM state.

public string Name { get; }

Property Value

string

StateActions

Actions to perform while in this state.

public Action StateActions { get; }

Property Value

Action

Transitions

Public property exposing the transitions associated with this state.

public IEnumerable<Transition> Transitions { get; }

Property Value

IEnumerable<Transition>

Methods

AddTransition(Transition)

Add a transition from this state to another state

public void AddTransition(Transition transition)

Parameters

transition Transition

Transition to another state.