C# Class Moe.StateMachine.Extensions.StateDelegate.StateDelegatePlugIn

Plugin allows for adding delegate objects that follow a convention for state entry/exit notification. A delegate, to receive notification of a state entered/exited, must provide a public method that is named like this: public void OnEnter(object event) or no parameters. Exit notifications work the same. In the example above, the "StateString" is the state object ToString() result.
Inheritance: IPlugIn
Datei anzeigen Open project: sstuddard/Moe.StateMachine

Public Methods

Method Description
AddDelegate ( object target ) : void
Initialize ( StateMachine sm ) : void
RemoveDelegate ( object target ) : void
StateDelegatePlugIn ( ) : System

Private Methods

Method Description
AttachState ( State state ) : void
InitializeStates ( ) : void
OnStateEntered ( object sender, StateTransitionEventArgs e ) : void
OnStateExited ( object sender, StateTransitionEventArgs e ) : void

Method Details

AddDelegate() public method

public AddDelegate ( object target ) : void
target object
return void

Initialize() public method

public Initialize ( StateMachine sm ) : void
sm StateMachine
return void

RemoveDelegate() public method

public RemoveDelegate ( object target ) : void
target object
return void

StateDelegatePlugIn() public method

public StateDelegatePlugIn ( ) : System
return System