Bazaar developer reference

CvPlayerAI::AI_launch(VictoryTypes)

Defined in
CvPlayerAI.cpp, line 886
Class
CvPlayerAI
Hook name
CivHooks::CvPlayerAI_AI_launch
Overrides
CvPlayer::AI_launch(VictoryTypes)

Hooks

static bool BeforeCvPlayerAI_AI_launch(CvPlayerAI* self, VictoryTypes eVictory);static void AfterCvPlayerAI_AI_launch(CvPlayerAI* self, VictoryTypes eVictory);static void ReplaceCvPlayerAI_AI_launch(void (*original)(CvPlayerAI*, VictoryTypes), CvPlayerAI* self, VictoryTypes eVictory);CivRegisterBefore<CivHooks::CvPlayerAI_AI_launch>(host, &BeforeCvPlayerAI_AI_launch);CivRegisterAfter<CivHooks::CvPlayerAI_AI_launch>(host, &AfterCvPlayerAI_AI_launch);CivRegisterReplace<CivHooks::CvPlayerAI_AI_launch>(host, &ReplaceCvPlayerAI_AI_launch);

Code

886void CvPlayerAI::AI_launch(VictoryTypes eVictory)887{888	if(GET_TEAM(getTeam()).isHuman())889	{890		return;891	}892893	if(!GET_TEAM(getTeam()).canLaunch(eVictory))894	{895		return;896	}897898	launch(eVictory);899}

Calls

Called by