Bazaar developer reference

CvAICityStrategyEntry::GetTechPrereq() const

Defined in
CvCityStrategyAI.cpp, line 129
Class
CvAICityStrategyEntry
Hook name
CivHooks::CvAICityStrategyEntry_GetTechPrereq

Hooks

static bool BeforeCvAICityStrategyEntry_GetTechPrereq(const CvAICityStrategyEntry* self, int& result);static void AfterCvAICityStrategyEntry_GetTechPrereq(const CvAICityStrategyEntry* self, int& result);static int ReplaceCvAICityStrategyEntry_GetTechPrereq(int (*original)(const CvAICityStrategyEntry*), const CvAICityStrategyEntry* self);CivRegisterBefore<CivHooks::CvAICityStrategyEntry_GetTechPrereq>(host, &BeforeCvAICityStrategyEntry_GetTechPrereq);CivRegisterAfter<CivHooks::CvAICityStrategyEntry_GetTechPrereq>(host, &AfterCvAICityStrategyEntry_GetTechPrereq);CivRegisterReplace<CivHooks::CvAICityStrategyEntry_GetTechPrereq>(host, &ReplaceCvAICityStrategyEntry_GetTechPrereq);

Code

128/// Technology prerequisite an AI Player must have to enable this Strategy129int CvAICityStrategyEntry::GetTechPrereq() const130{131	return m_iTechPrereq;132}

Called by