Click or drag to resize
DigitalRuneState Class
Defines a state in a state machine.
Inheritance Hierarchy
SystemObject
  DigitalRune.Game.StatesState

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

The State type exposes the following members.

Constructors
  NameDescription
Public methodState
Initializes a new instance of the State class.
Public methodState(String)
Initializes a new instance of the State 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.)
Protected methodOnEnter
Raises the Enter event.
Protected methodOnExit
Raises the Exit event.
Protected methodOnUpdate
Raises the Update event.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Properties
  NameDescription
Public propertyIsActive
Gets a value indicating whether this state is active.
Public propertyName
Gets or sets the name of the state.
Public propertyOwner
Gets the state collection that owns this state.
Public propertyParallelSubStates
Gets the parallel sub-state collections.
Public propertyTransitions
Gets the transitions.
Top
Events
  NameDescription
Public eventEnter
Occurs when the state is entered.
Public eventExit
Occurs when the state is exited.
Public eventUpdate
Occurs when the state is updated.
Top
Remarks
Important note: Each state must be given a name that is unique within the StateCollection in which it will be used.
See Also