PushdownAutomatonT Class |
Namespace: Archon.SwissArmyLib.Automata
public class PushdownAutomaton<T>
The PushdownAutomatonT type exposes the following members.
Name | Description | |
---|---|---|
PushdownAutomatonT |
Creates a new PushdownAutomaton.
You should use RegisterStateType(Type, FuncIPdaStateT) to register which state types that can be used with the machine.
|
Name | Description | |
---|---|---|
Context |
A shared context which all states have access to.
| |
CurrentState |
The active state.
|
Name | Description | |
---|---|---|
ChangeStateTState |
Replaces the active state with another state, without notifying the underlying state.
| |
ChangeStateAutoTState |
Replaces the active state with another state, without notifying the underlying state.
If the state is not registered, it will automatically be and its empty constructor will be used to create the instances.
| |
Equals | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetType | Gets the type of the current instance. (Inherited from Object.) | |
IsRegisteredTState |
Checks whether a state type is registered in the machine.
| |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
PopAll |
Pops all states in the stack.
| |
PopState |
Pops the current state and resumes the underlying state.
| |
PushStateTState |
Pushes a state to the top of the stack and pauses the underlying state.
| |
PushStateAutoTState |
Pushes a state to the top of the stack and pauses the underlying state.
If the state is not registered, it will automatically be and its empty constructor will be used to create the instances.
| |
PushStateSilentlyTState |
Pushes a state to the top of the stack without notifying the underlying state.
| |
PushStateSilentlyAutoTState |
Pushes a state to the top of the stack without notifying the underlying state.
If the state is not registered, it will automatically be and its empty constructor will be used to create the instances.
| |
RegisterStateType(Type, FuncIPdaStateT) |
Registers a state type in the machine.
A pool for the type will be created which uses the given creationMethod to create new instance when needed.
| |
RegisterStateTypeTState |
Registers a state type in the machine.
A pool for the type will be created that will use the empty constructor.
| |
ToString | Returns a string that represents the current object. (Inherited from Object.) | |
Update |
Call this every time the machine should update. Eg. every frame.
|