示例#1
0
 public int AddStrategy(StrategyActioner pStrategyActioner, AIState aiState)
 {
     return(AddStrategy(pStrategyActioner, EmptyStrategyEnter.Run, EmptyStrategyExit.Run, EmptyStrategyFeedbacker.Run, aiState));
 }
示例#2
0
 // add a Strategy bind with a AIState
 public int AddStrategy(StrategyActioner pStrategyActioner, StrategyEnter pStrategyEnter, StrategyExit pStrategyExit, StrategyFeedbacker pStrategyFeedbacker, AIState pAIState)
 {
     if (tempCount < maxCount)
     {
         mStrategyActioner [tempCount]   = pStrategyActioner;
         mStrategyFeedbacker [tempCount] = pStrategyFeedbacker;
         mStrategyEnter [tempCount]      = pStrategyEnter;
         mStrategyExit [tempCount]       = pStrategyExit;
         mAIState[tempCount]             = pAIState;
         tempCount++;
         return(tempCount - 1);
     }
     return(-1);
 }