BM.StateMachine
Type JSONpublic class in BM
Type metadata
- Assembly
CandideServer - Namespace
BM - Base type
System.Object - Hash
1C88155226126EFD9CE83CF1868C861D1AB0949494EEFFF75E0E008B124A5AC4
Relationships
Base type
System.Object
Referenced by types
Fields
| Name | Visibility | Signature |
|---|---|---|
IsServerTransitionMessagesEnabled# | public | public System.Boolean IsServerTransitionMessagesEnabled |
TransitionBehaviorIsActive# | public | public System.Boolean TransitionBehaviorIsActive |
UpdateBehaviorTree# | public | public BM.BehaviorTree UpdateBehaviorTree |
_currentState# | private | private BM.State _currentState |
_currentStateIndex# | private | private System.Byte _currentStateIndex |
_hasEnteredStates# | private | private System.Boolean _hasEnteredStates |
_hasIntializedChildStates# | private | private System.Boolean _hasIntializedChildStates |
_reuseSmUpdateContext# | private | private BM.SMUpdateContext _reuseSmUpdateContext |
_startState# | private | private BM.State _startState |
_stateIndexToNameMap# | private | private System.Collections.Generic.Dictionary<System.Byte, System.String> _stateIndexToNameMap |
_states# | private | private System.Collections.Generic.Dictionary<System.String, BM.State> _states |
Properties
| Name | Visibility | Signature |
|---|---|---|
Item# | public | public BM.State Item |
Item# | public | public System.String Item |
Methods
AddState
#
public System.Void AddState(System.String stateName, BM.State state)
Method metadata
- Visibilitypublic
- Return type
System.Void - StaticFalse
- VirtualFalse
- Hash
251194B7F927A8BD09A2BD25FEB155636F26A8A4B762AED9FD3CA099A40A10A6 - Body hash
F39C6ADA6717629F0FC0AD387C63B4E6C7804076AE35EBF40CFB5D079E777B95 - IL size59
Referenced calls
System.Collections.Generic.Dictionary<System.String, BM.State>::set_Item(!0, !1)System.Collections.Generic.Dictionary<System.Byte, System.String>::set_Item(!0, !1)
GetCurrentChildState
#
public BM.State GetCurrentChildState()
Method metadata
- Visibilitypublic
- Return type
BM.State - StaticFalse
- VirtualFalse
- Hash
39AD187D472F676A1606CB095748F424B65BA13B5A1EF53904A5C874C8821447 - Body hash
EA09291BD10B1DF974BD96C5A557589C806B2741B32935371B37DB9638691F36 - IL size26
Referenced calls
GetCurrentState
#
public BM.State GetCurrentState()
Method metadata
- Visibilitypublic
- Return type
BM.State - StaticFalse
- VirtualFalse
- Hash
9CC2181951CA606693B45FEC9BB14ED772BDD5E59C6ABFC11867303F40A7B0D3 - Body hash
39C8F905C3C7C0C889287D385EF6391A9E1FC556488A97652DE999B5E4973724 - IL size7
HandleTriggeredTransition
#
public System.Void HandleTriggeredTransition(BM.Transition& triggeredTransition, BM.SMUpdateContext updateContext)
Method metadata
- Visibilitypublic
- Return type
System.Void - StaticFalse
- VirtualFalse
- Hash
E4017E09AF0D626F2A593FBD6422AB7213B4DEFFE86BE1B3829B4109E6B3233E - Body hash
C130E876D81374389F8A1DDABDD3E1C7640007ABCCE086973BEB852221CFE28F - IL size32
Referenced calls
BM.Transition::get_TargetState()BM.StateMachine::SendTransitionMessage(System.Byte, Shared.Entity.EntityWrapper)
Called by
HasStartState
#
public System.Boolean HasStartState()
Method metadata
- Visibilitypublic
- Return type
System.Boolean - StaticFalse
- VirtualFalse
- Hash
82DB9B262FA9D8BFE123E3D1E2F1C85FC828879572A520AD5336A1F02AC4F32A - Body hash
B7696F2384A7CE6CCA3676FF3145EB27356983938063A17489BF6A42E6B53A1F - IL size10
Called by
IsCurrentState
#
public System.Boolean IsCurrentState(BM.State state)
Method metadata
- Visibilitypublic
- Return type
System.Boolean - StaticFalse
- VirtualFalse
- Hash
0E9E1BB274831D25B36BA6796D8D82CA89545904C776904A29690D6B22A9ABA9 - Body hash
E3A685567C8F8D51E53B383722A5F56BF6F04993D156EAD5F5DFC329DBD122D4 - IL size24
Referenced calls
IsCurrentState
#
public System.Boolean IsCurrentState(System.String targetState)
Method metadata
- Visibilitypublic
- Return type
System.Boolean - StaticFalse
- VirtualFalse
- Hash
B7C16EA37B65EBC89148CA4F6EDB97DF558F48B5505522FDD9B408429EB18403 - Body hash
69D6D9E8B09565CE421CBBA18F3475C67B5CEB15AD338587EBD5A354F54FBF73 - IL size24
Referenced calls
Called by
IsCurrentState
#
public System.Boolean IsCurrentState(System.String[] targetStates)
Method metadata
- Visibilitypublic
- Return type
System.Boolean - StaticFalse
- VirtualFalse
- Hash
E5BE7123DD6465B51745223EF4C2EDBF268248470C47E715E80D0C796DEAD243 - Body hash
FA326DECA99A9057F10FAB755984FACDD90B3DAC8EF2BFEC939CC7A96CABDFF3 - IL size24
Referenced calls
IsState
#
private System.Boolean IsState(BM.State targetState, BM.State currentState)
Method metadata
- Visibilityprivate
- Return type
System.Boolean - StaticFalse
- VirtualFalse
- Hash
03FF00FAF3DB59ED2BDA1EE1FAEAC139CBED4CDF42DF832B4D0CD2D67B9E2E24 - Body hash
65686705C756E698BCD4B3B88184A82BCD14D94E70D0D73EC8160327C32B74BD - IL size32
IsState
#
private System.Boolean IsState(System.String targetState, BM.State currentState)
Method metadata
- Visibilityprivate
- Return type
System.Boolean - StaticFalse
- VirtualFalse
- Hash
5A3D8D3628421C8563DCD68D59BFF32CD75E87059EB741F095FFD263CE00CF69 - Body hash
144455A1DD2E480E2C100A5FCB0E3EA6CFA60C147EE8DFE3C76F87268AB07994 - IL size42
Referenced calls
BM.State::get_Name()System.String::op_Equality(System.String, System.String)BM.State::GetCurrentChildState()BM.StateMachine::IsState(System.String, BM.State)
IsState
#
private System.Boolean IsState(System.String[] targetStates, BM.State currentState)
Method metadata
- Visibilityprivate
- Return type
System.Boolean - StaticFalse
- VirtualFalse
- Hash
990B74132BA8F9DB9CE35909855E6FCE5375D7BE8CA09BD363EDE93D7B6C39E8 - Body hash
998EA2B93C59FA91C93E79FF1266561486196D3FC6C2A3DF3E664AB199FFA528 - IL size60
Referenced calls
BM.State::get_Name()System.String::op_Equality(System.String, System.String)BM.State::GetCurrentChildState()BM.StateMachine::IsState(System.String[], BM.State)
Reset
#
public System.Void Reset(BM.Blackboard blackboard)
Method metadata
- Visibilitypublic
- Return type
System.Void - StaticFalse
- VirtualFalse
- Hash
4F9696378835BCC2D954B31E127CE403923F1B253031DCBB1FF1EC7BEB8EE831 - Body hash
CABE02C323A004550CA336A1C26E3133B58521830B3659D405BB46B0CD9F5196 - IL size22
Called by
SendTransitionMessage
#
private System.Void SendTransitionMessage(System.Byte targetState, Shared.Entity.EntityWrapper entity)
Method metadata
- Visibilityprivate
- Return type
System.Void - StaticFalse
- VirtualFalse
- Hash
3A5F8D0F7844A4863F29E9E29701774834AE8A4F205E902AC618F8FB0367F923 - Body hash
17416ED789BBD302AE1FBA9016B12B41045ADC6CBA0A258B80E973453EA605B2 - IL size63
Referenced calls
CandideServer.MessageModels.Entities.EntitiesControllerMessage::.ctor()Shared.Entity.EntityWrapper::get_Id()CandideServer.Entities.Controllers.BehaviorMachineTransitionMessage::.ctor()Shared.Entity.EntityWrapper::get_Position()CandideCreator.Shared.Helpers.VectorExtension::ToVector2(Microsoft.Xna.Framework.Vector3)CandideServer.ServerServices.EntityServerService::SendEntitiesControllerMessage(CandideServer.MessageModels.Entities.EntitiesControllerMessage, Microsoft.Xna.Framework.Vector2, System.Guid)
SetCurrentRootState
#
public System.Void SetCurrentRootState(BM.State state)
Method metadata
- Visibilitypublic
- Return type
System.Void - StaticFalse
- VirtualFalse
- Hash
0FF647FB6F87AAF710BDB161DB777991C4EEF27F21637F0EA6745271EA9C6270 - Body hash
56FD3D895DE724B1FACB2FE215C9BD3A8606C791B6CDEE1521A07F4BE8ECC5BA - IL size8
SetCurrentState
#
public System.Void SetCurrentState(BM.State state, BM.Blackboard blackboard, System.Boolean initializeCurrentChildStates)
Method metadata
- Visibilitypublic
- Return type
System.Void - StaticFalse
- VirtualFalse
- Hash
00144F2388660D53BC0A5687C0EEB9E4A9585F0229C5A1C2E5610914116CAEFD - Body hash
28C6CB8FFF8026136C54C74EF4E348FA8E67AB163AD647AD96D087F89C1332B1 - IL size93
Referenced calls
SetStartState
#
public System.Void SetStartState(BM.State startState)
Method metadata
- Visibilitypublic
- Return type
System.Void - StaticFalse
- VirtualFalse
- Hash
E2921FE595E18AEBBD0A8C0AAC952C1CCA67BC06B6E045F2F178CAFEB225FC91 - Body hash
1A75A0DC08043F0FD24F5F8D7F8327AA72A962522E7DB4F890B2DD533DE93875 - IL size17
Called by
Update
#
public System.Void Update(Microsoft.Xna.Framework.GameTime gameTime, Shared.Entity.EntityWrapper entity, CandideServer.Entities.ServerEntityModel serverEntity, BM.Blackboard blackboard)
Method metadata
- Visibilitypublic
- Return type
System.Void - StaticFalse
- VirtualFalse
- Hash
BFDFBE9AB0E0D76F14B2FC5793A95969D957CD226ABC968EB32619F8578AA3DE - Body hash
DBC499152275A8124B3BB5B0CE7E0674FDA0CACF4B74CE6A3564A940CFAC05A2 - IL size143
Referenced calls
BM.SMUpdateContext::SetValues(Microsoft.Xna.Framework.GameTime, Shared.Entity.EntityWrapper, CandideServer.Entities.ServerEntityModel)BM.State::InitializeCurrentChildStatesRecursively(BM.SMUpdateContext, BM.Blackboard)BM.State::EnterStatesRecursively(BM.SMUpdateContext, BM.Blackboard)BM.BehaviorTree::Execute(Microsoft.Xna.Framework.GameTime, Shared.Entity.EntityWrapper, CandideServer.Entities.ServerEntityModel, BM.Blackboard, BM.StateMachine)BM.State::UpdateStatesRecursively(BM.SMUpdateContext, BM.Blackboard)