コード例 #1
0
 /// <summary>
 /// 增加一个决策行为
 /// </summary>
 /// <param name="action">行为</param>
 /// <param name="actionTrans">行为跳转的规则</param>
 public void addAction(GameAction <T> action, ExecuteRule actionTrans)
 {
     actionList.Add(action);
     this.actionTrans.Add(actionTrans);
 }
コード例 #2
0
 /// <summary>
 /// 增加一个决策行为
 /// </summary>
 /// <param name="action">行为</param>
 /// <param name="actionScoreCalc">行为决策函数</param>
 /// <param name="actionTrans">行为跳转的规则</param>
 public void addAction(GameAction <T> action, Utility actionScoreCalc, ExecuteRule actionTrans)
 {
     actionList.Add(action);
     actionScore.Add(actionScoreCalc);
     this.actionTrans.Add(actionTrans);
 }