Bazaar developer reference

CvUnit::hillsDefenseModifier() const

Defined in
CvUnit.cpp, line 15176
Class
CvUnit
Hook name
CivHooks::CvUnit_hillsDefenseModifier

Hooks

static bool BeforeCvUnit_hillsDefenseModifier(const CvUnit* self, int& result);static void AfterCvUnit_hillsDefenseModifier(const CvUnit* self, int& result);static int ReplaceCvUnit_hillsDefenseModifier(int (*original)(const CvUnit*), const CvUnit* self);CivRegisterBefore<CivHooks::CvUnit_hillsDefenseModifier>(host, &BeforeCvUnit_hillsDefenseModifier);CivRegisterAfter<CivHooks::CvUnit_hillsDefenseModifier>(host, &AfterCvUnit_hillsDefenseModifier);CivRegisterReplace<CivHooks::CvUnit_hillsDefenseModifier>(host, &ReplaceCvUnit_hillsDefenseModifier);

Code

15176int CvUnit::hillsDefenseModifier() const15177{15178	VALIDATE_OBJECT15179	return (getExtraHillsDefensePercent());15180}

Calls

Called by