void CAIGoalAttackProp::UpdateGoal() { CAIState* pState = m_pAI->GetState(); switch(pState->GetStateType()) { case kState_HumanAttackProp: HandleStateAttackProp(); break; case kState_HumanDraw: HandleStateDraw(); break; case kState_HumanAware: break; case kState_HumanPanic: HandleStatePanic(); break; // Unexpected state. default: AIASSERT(0, m_pAI->m_hObject, "CAIGoalAttackProp::UpdateGoal: Unexpected State."); } }
void CAIGoalDistress::UpdateGoal() { CAIState* pState = m_pAI->GetState(); switch(pState->GetStateType()) { case kState_HumanDistress: HandleStateDistress(); break; case kState_HumanPanic: HandleStatePanic(); break; // Unexpected State. default: ASSERT(!"CAIGoalDistress::UpdateGoal: Unexpected State."); } }