public int AddStrategy(StrategyActioner pStrategyActioner, AIState aiState) { return(AddStrategy(pStrategyActioner, EmptyStrategyEnter.Run, EmptyStrategyExit.Run, EmptyStrategyFeedbacker.Run, aiState)); }
// 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); }