示例#1
0
 /// <summary>
 /// 子状态是否可以影响主状态的切换
 /// </summary>
 /// <param name="state"></param>
 /// <returns></returns>
 private bool IsCauseMian(FSMState state)
 {
     foreach (FSMState item in listSubState)
     {
         if (FSMStateRuleConfig.MutexSubState(item).Contains(state))
         {
             return(false);
         }
     }
     return(true);
 }
示例#2
0
 /// <summary>
 /// 是否影响当前的主状态
 /// </summary>
 /// <param name="state"></param>
 /// <returns> true 为 影响</returns>
 private bool IsCauseCurrent(FSMState substate, FSMState current)
 {
     return(FSMStateRuleConfig.MutexSubState(substate).Contains(current));
 }