Table of Contents

Class Transition

Namespace
LibGameAI.FSMs
Assembly
FSMs.dll

A transition between states.

public class Transition
Inheritance
Transition
Inherited Members

Constructors

Transition(Func<bool>, Action, State)

Create a new transition.

public Transition(Func<bool> condition, Action actions, State targetState)

Parameters

condition Func<bool>

Condition for triggering this transition.

actions Action

Actions associated with this transition.

targetState State

Target state for this transition.

Properties

Actions

Actions associated with this transition.

public Action Actions { get; }

Property Value

Action

TargetState

Target state for this transition.

public State TargetState { get; }

Property Value

State

Methods

IsTriggered()

Is this transition triggered?

public bool IsTriggered()

Returns

bool

true if transition is triggered, false otherwise.