Bazaar developer reference

CvMilitaryAIStrategyXMLEntry::GetWeightThreshold() const

Defined in
CvMilitaryAI.cpp, line 126
Class
CvMilitaryAIStrategyXMLEntry
Hook name
CivHooks::CvMilitaryAIStrategyXMLEntry_GetWeightThreshold

Hooks

static bool BeforeCvMilitaryAIStrategyXMLEntry_GetWeightThreshold(const CvMilitaryAIStrategyXMLEntry* self, int& result);static void AfterCvMilitaryAIStrategyXMLEntry_GetWeightThreshold(const CvMilitaryAIStrategyXMLEntry* self, int& result);static int ReplaceCvMilitaryAIStrategyXMLEntry_GetWeightThreshold(int (*original)(const CvMilitaryAIStrategyXMLEntry*), const CvMilitaryAIStrategyXMLEntry* self);CivRegisterBefore<CivHooks::CvMilitaryAIStrategyXMLEntry_GetWeightThreshold>(host, &BeforeCvMilitaryAIStrategyXMLEntry_GetWeightThreshold);CivRegisterAfter<CivHooks::CvMilitaryAIStrategyXMLEntry_GetWeightThreshold>(host, &AfterCvMilitaryAIStrategyXMLEntry_GetWeightThreshold);CivRegisterReplace<CivHooks::CvMilitaryAIStrategyXMLEntry_GetWeightThreshold>(host, &ReplaceCvMilitaryAIStrategyXMLEntry_GetWeightThreshold);

Code

125/// The amount of weight a Strategy must accumulate to be adopted (if applicable)126int CvMilitaryAIStrategyXMLEntry::GetWeightThreshold() const127{128	return m_iWeightThreshold;129}

Called by