C# Class fsm.Machine

Inheritance: State
Show file Open project: exdev/ex-unity-old-deprecated Class Usage Examples

Public Properties

Property Type Description
logDebugInfo bool
onStart OnEventHandler
onStop OnEventHandler
showDebugInfo bool

Protected Properties

Property Type Description
curEventBufferIdx int
eventBuffer List[]
isUpdating bool
machineState MachineState
nextEventBufferIdx int
startState State
validTransitions List

Public Methods

Method Description
Machine ( ) : System.Collections
Pause ( ) : void
Restart ( ) : void
Resume ( ) : void
Send ( Event _event ) : void
Send ( int _eventID ) : void
ShowDebugGUI ( string _name, GUIStyle _textStyle ) : void
Start ( ) : void
Stop ( ) : void
Update ( ) : void

Protected Methods

Method Description
EnterStates ( Event _event, List _transitionList ) : void
ExecTransitions ( Event _event, List _transitionList ) : void
ExitStates ( Event _event, List _transitionList ) : void
GetCurrentMachineState ( ) : MachineState
HandleEvent ( Event _event ) : bool
ProcessStop ( ) : void

Method Details

EnterStates() protected method

protected EnterStates ( Event _event, List _transitionList ) : void
_event Event
_transitionList List
return void

ExecTransitions() protected method

protected ExecTransitions ( Event _event, List _transitionList ) : void
_event Event
_transitionList List
return void

ExitStates() protected method

protected ExitStates ( Event _event, List _transitionList ) : void
_event Event
_transitionList List
return void

GetCurrentMachineState() protected method

protected GetCurrentMachineState ( ) : MachineState
return MachineState

HandleEvent() protected method

protected HandleEvent ( Event _event ) : bool
_event Event
return bool

Machine() public method

public Machine ( ) : System.Collections
return System.Collections

Pause() public method

public Pause ( ) : void
return void

ProcessStop() protected method

protected ProcessStop ( ) : void
return void

Restart() public method

public Restart ( ) : void
return void

Resume() public method

public Resume ( ) : void
return void

Send() public method

public Send ( Event _event ) : void
_event Event
return void

Send() public method

public Send ( int _eventID ) : void
_eventID int
return void

ShowDebugGUI() public method

public ShowDebugGUI ( string _name, GUIStyle _textStyle ) : void
_name string
_textStyle UnityEngine.GUIStyle
return void

Start() public method

public Start ( ) : void
return void

Stop() public method

public Stop ( ) : void
return void

Update() public method

public Update ( ) : void
return void

Property Details

curEventBufferIdx protected property

protected int curEventBufferIdx
return int

eventBuffer protected property

protected List[] eventBuffer
return List[]

isUpdating protected property

protected bool isUpdating
return bool

logDebugInfo public property

public bool logDebugInfo
return bool

machineState protected property

protected MachineState machineState
return MachineState

nextEventBufferIdx protected property

protected int nextEventBufferIdx
return int

onStart public property

public OnEventHandler onStart
return OnEventHandler

onStop public property

public OnEventHandler onStop
return OnEventHandler

showDebugInfo public property

public bool showDebugInfo
return bool

startState protected property

protected State startState
return State

validTransitions protected property

protected List validTransitions
return List