Click or drag to resize

PushdownAutomatonTLabel Class

This class is a state machine that has the ability to remember previous states and transition back to them (FIFO).
Inheritance Hierarchy
SystemObject
  Gamelogic.ExtensionsStateMachineTLabel
    Gamelogic.ExtensionsPushdownAutomatonTLabel

Namespace:  Gamelogic.Extensions
Assembly:  Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0.0.0
Syntax
C#
[VersionAttribute(1, 4, 0)]
public class PushdownAutomaton<TLabel> : StateMachine<TLabel>

Type Parameters

TLabel
The type of state labels.

The PushdownAutomatonTLabel type exposes the following members.

Constructors
Properties
Methods
  NameDescription
Public methodAddState(TLabel)
Adds a state.
(Inherited from StateMachineTLabel.)
Public methodAddState(TLabel, Action)
Adds a state, and the delegates that should run when the state starts. Any delegate can be null, and wont be executed.
(Inherited from StateMachineTLabel.)
Public methodAddState(TLabel, Action, Action)
Adds a state, and the delegates that should run when the state starts, and when the state machine is updated. Any delegate can be null, and wont be executed.
(Inherited from StateMachineTLabel.)
Public methodAddState(TLabel, Action, Action, Action)
Adds a state, and the delegates that should run when the state starts, stops, and when the state machine is updated. Any delegate can be null, and wont be executed.
(Inherited from StateMachineTLabel.)
Public methodAddStateTSubStateLabel(TLabel, StateMachineTSubStateLabel, TSubStateLabel)
Adds a sub state machine for the given state. The sub state machine need not be updated, as long as this state machine is being updated.
(Inherited from StateMachineTLabel.)
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodPop
Pops a state from the stack and switches to it.
Public methodPush
Pushes the current state onto the stack, and transitions to the next state.
Public methodToString
Returns the current state name
(Inherited from StateMachineTLabel.)
Public methodUpdate
This method should be called every frame.
(Inherited from StateMachineTLabel.)
Top
Extension Methods
  NameDescription
Public Extension MethodThrowIfNull
Throws a NullReferenceException if the object is null.
(Defined by ObjectExtensions.)
Top
See Also