BaseStateTMachine, TContext Class |
Namespace: Archon.SwissArmyLib.Automata
public abstract class BaseState<TMachine, TContext> : IState<TMachine, TContext>
The BaseStateTMachine, TContext type exposes the following members.
Name | Description | |
---|---|---|
BaseStateTMachine, TContext | Initializes a new instance of the BaseStateTMachine, TContext class |
Name | Description | |
---|---|---|
Context |
The context for this state.
| |
Machine |
The state machine this state belongs to.
| |
TimeInState |
Amount of (active) time spent in this state since it was entered.
|
Name | Description | |
---|---|---|
Act |
Called every frame after Reason, if the state hasn't been changed.
| |
Begin |
Called when the state is entered.
| |
End |
Called when the state is exited.
| |
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.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
Reason |
Called every frame just before Act(Single).
Use this to check whether you should change state.
| |
ToString | Returns a string that represents the current object. (Inherited from Object.) |