Bazaar developer reference

CvAIGrandStrategyXMLEntry::GetFlavorModValue(int) const

Defined in
CvGrandStrategyAI.cpp, line 65
Class
CvAIGrandStrategyXMLEntry
Hook name
CivHooks::CvAIGrandStrategyXMLEntry_GetFlavorModValue

Hooks

static bool BeforeCvAIGrandStrategyXMLEntry_GetFlavorModValue(const CvAIGrandStrategyXMLEntry* self, int i, int& result);static void AfterCvAIGrandStrategyXMLEntry_GetFlavorModValue(const CvAIGrandStrategyXMLEntry* self, int i, int& result);static int ReplaceCvAIGrandStrategyXMLEntry_GetFlavorModValue(int (*original)(const CvAIGrandStrategyXMLEntry*, int), const CvAIGrandStrategyXMLEntry* self, int i);CivRegisterBefore<CivHooks::CvAIGrandStrategyXMLEntry_GetFlavorModValue>(host, &BeforeCvAIGrandStrategyXMLEntry_GetFlavorModValue);CivRegisterAfter<CivHooks::CvAIGrandStrategyXMLEntry_GetFlavorModValue>(host, &AfterCvAIGrandStrategyXMLEntry_GetFlavorModValue);CivRegisterReplace<CivHooks::CvAIGrandStrategyXMLEntry_GetFlavorModValue>(host, &ReplaceCvAIGrandStrategyXMLEntry_GetFlavorModValue);

Code

64/// What Flavors will be added by adopting this Grand Strategy?65int CvAIGrandStrategyXMLEntry::GetFlavorModValue(int i) const66{67	FAssertMsg(i < GC.getNumFlavorTypes(), "Index out of bounds");68	FAssertMsg(i > -1, "Index out of bounds");69	return m_piFlavorModValue ? m_piFlavorModValue[i] : 0;70}

Called by