Click or drag to resize
DigitalRuneStateMachine Class
Represents a state machine.
Inheritance Hierarchy
SystemObject
  DigitalRune.Game.StatesStateMachine

Namespace: DigitalRune.Game.States
Assembly: DigitalRune.Game (in DigitalRune.Game.dll) Version: 1.4.0.0 (1.4.0.14427)
Syntax
public class StateMachine

The StateMachine type exposes the following members.

Constructors
  NameDescription
Public methodStateMachine
Initializes a new instance of the StateMachine class.
Top
Methods
  NameDescription
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 methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodUpdate
Updates the state machine.
Top
Properties
  NameDescription
Public propertyStates
Gets the states.
Top
Remarks

This is an implementation of the UML state machine view.

Update(TimeSpan) must be called to let the state machine advance a single time step. All transitions and state updates are performed only when the method Update(TimeSpan) is called. Transition events between Update(TimeSpan) calls are stored and executed at the beginning of the next Update(TimeSpan) call.

See Also