PushdownAutomatonTLabel Class |
Namespace: Gamelogic.Extensions
[VersionAttribute(1, 4, 0)] public class PushdownAutomaton<TLabel> : StateMachine<TLabel>
The PushdownAutomatonTLabel type exposes the following members.
| Name | Description | |
|---|---|---|
| PushdownAutomatonTLabel |
| Name | Description | |
|---|---|---|
| CurrentState |
Returns the label of the current state.
(Inherited from StateMachineTLabel.) |
| Name | Description | |
|---|---|---|
| AddState(TLabel) |
Adds a state.
(Inherited from StateMachineTLabel.) | |
| AddState(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.) | |
| AddState(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.) | |
| AddState(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.) | |
| AddStateTSubStateLabel(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.) | |
| Equals | (Inherited from Object.) | |
| Finalize | (Inherited from Object.) | |
| GetHashCode | (Inherited from Object.) | |
| GetType | (Inherited from Object.) | |
| MemberwiseClone | (Inherited from Object.) | |
| Pop |
Pops a state from the stack and switches to it.
| |
| Push |
Pushes the current state onto the stack, and transitions to the next state.
| |
| ToString |
Returns the current state name
(Inherited from StateMachineTLabel.) | |
| Update |
This method should be called every frame.
(Inherited from StateMachineTLabel.) |
| Name | Description | |
|---|---|---|
| ThrowIfNull |
Throws a NullReferenceException if the object is null.
(Defined by ObjectExtensions.) |