Bazaar developer reference

CvAICityStrategyEntry::IsPermanent() const

Defined in
CvCityStrategyAI.cpp, line 159
Class
CvAICityStrategyEntry
Hook name
CivHooks::CvAICityStrategyEntry_IsPermanent

Hooks

static bool BeforeCvAICityStrategyEntry_IsPermanent(const CvAICityStrategyEntry* self, bool& result);static void AfterCvAICityStrategyEntry_IsPermanent(const CvAICityStrategyEntry* self, bool& result);static bool ReplaceCvAICityStrategyEntry_IsPermanent(bool (*original)(const CvAICityStrategyEntry*), const CvAICityStrategyEntry* self);CivRegisterBefore<CivHooks::CvAICityStrategyEntry_IsPermanent>(host, &BeforeCvAICityStrategyEntry_IsPermanent);CivRegisterAfter<CivHooks::CvAICityStrategyEntry_IsPermanent>(host, &AfterCvAICityStrategyEntry_IsPermanent);CivRegisterReplace<CivHooks::CvAICityStrategyEntry_IsPermanent>(host, &ReplaceCvAICityStrategyEntry_IsPermanent);

Code

158/// Will this CityStrategy be run forever after being adopted? [Overwrites whatever is present in the above 2 functions/members]159bool CvAICityStrategyEntry::IsPermanent() const160{161	return m_bPermanent;162}

Called by