Bazaar developer reference

CvUnit::flavorValue(FlavorTypes) const

Defined in
CvUnit.cpp, line 11468
Class
CvUnit
Hook name
CivHooks::CvUnit_flavorValue

Hooks

static bool BeforeCvUnit_flavorValue(const CvUnit* self, FlavorTypes eFlavor, int& result);static void AfterCvUnit_flavorValue(const CvUnit* self, FlavorTypes eFlavor, int& result);static int ReplaceCvUnit_flavorValue(int (*original)(const CvUnit*, FlavorTypes), const CvUnit* self, FlavorTypes eFlavor);CivRegisterBefore<CivHooks::CvUnit_flavorValue>(host, &BeforeCvUnit_flavorValue);CivRegisterAfter<CivHooks::CvUnit_flavorValue>(host, &AfterCvUnit_flavorValue);CivRegisterReplace<CivHooks::CvUnit_flavorValue>(host, &ReplaceCvUnit_flavorValue);

Code

11468int CvUnit::flavorValue(FlavorTypes eFlavor) const11469{11470	VALIDATE_OBJECT11471	return m_pUnitInfo->GetFlavorValue(eFlavor);11472}

Calls

Called by