Click or drag to resize

IStateTMachine, TContext Interface

Namespace:  Archon.SwissArmyLib.Automata
Assembly:  Archon.SwissArmyLib (in Archon.SwissArmyLib.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public interface IState<TMachine, TContext>
Request Example View Source

Type Parameters

TMachine
The type of the machine.
TContext
The type of the context.

The IStateTMachine, TContext type exposes the following members.

Properties
  NameDescription
Public propertyContext
The context for this state.
Public propertyMachine
The state machine this state belongs to.
Top
Methods
  NameDescription
Public methodAct
Called every frame after Reason, if the state hasn't been changed.
Public methodBegin
Called when the state is entered.
Public methodEnd
Called when the state is exited.
Public methodReason
Called every frame just before Act(Single). Use this to check whether you should change state.
Top
See Also