コード例 #1
0
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.");
	}
}
コード例 #2
0
ファイル: AIGoalDistress.cpp プロジェクト: Arc0re/lithtech
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.");
	}
}