Bazaar developer reference

MilitaryAIHelpers::IsTestStrategy_MinorCivGeneralDefense()

Defined in
CvMilitaryAI.cpp, line 4680
Hook name
CivHooks::MilitaryAIHelpers_IsTestStrategy_MinorCivGeneralDefense

Hooks

static bool BeforeMilitaryAIHelpers_IsTestStrategy_MinorCivGeneralDefense(bool& result);static void AfterMilitaryAIHelpers_IsTestStrategy_MinorCivGeneralDefense(bool& result);static bool ReplaceMilitaryAIHelpers_IsTestStrategy_MinorCivGeneralDefense(bool (*original)());CivRegisterBefore<CivHooks::MilitaryAIHelpers_IsTestStrategy_MinorCivGeneralDefense>(host, &BeforeMilitaryAIHelpers_IsTestStrategy_MinorCivGeneralDefense);CivRegisterAfter<CivHooks::MilitaryAIHelpers_IsTestStrategy_MinorCivGeneralDefense>(host, &AfterMilitaryAIHelpers_IsTestStrategy_MinorCivGeneralDefense);CivRegisterReplace<CivHooks::MilitaryAIHelpers_IsTestStrategy_MinorCivGeneralDefense>(host, &ReplaceMilitaryAIHelpers_IsTestStrategy_MinorCivGeneralDefense);

Code

4679/// "Minor Civ GeneralDefense" Player Strategy: Prioritize CITY_DEFENSE and DEFENSE4680bool MilitaryAIHelpers::IsTestStrategy_MinorCivGeneralDefense()4681{4682	return true;4683}

Called by