Click or drag to resize

BaseStateTMachine, TContext Class

Inheritance Hierarchy
SystemObject
  Archon.SwissArmyLib.AutomataBaseStateTMachine, TContext
    Archon.SwissArmyLib.AutomataFsmStateT
    Archon.SwissArmyLib.AutomataPdaStateT

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

Type Parameters

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

The BaseStateTMachine, TContext type exposes the following members.

Constructors
  NameDescription
Protected methodBaseStateTMachine, TContext
Initializes a new instance of the BaseStateTMachine, TContext class
Top
Properties
  NameDescription
Public propertyContext
The context for this state.
Public propertyMachine
The state machine this state belongs to.
Public propertyTimeInState
Amount of (active) time spent in this state since it was entered.
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 methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodReason
Called every frame just before Act(Single). Use this to check whether you should change state.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
See Also