Bazaar developer reference

CvUnit::getAlwaysHostileCount() const

Defined in
CvUnit.cpp, line 22135
Class
CvUnit
Hook name
CivHooks::CvUnit_getAlwaysHostileCount

Hooks

static bool BeforeCvUnit_getAlwaysHostileCount(const CvUnit* self, int& result);static void AfterCvUnit_getAlwaysHostileCount(const CvUnit* self, int& result);static int ReplaceCvUnit_getAlwaysHostileCount(int (*original)(const CvUnit*), const CvUnit* self);CivRegisterBefore<CivHooks::CvUnit_getAlwaysHostileCount>(host, &BeforeCvUnit_getAlwaysHostileCount);CivRegisterAfter<CivHooks::CvUnit_getAlwaysHostileCount>(host, &AfterCvUnit_getAlwaysHostileCount);CivRegisterReplace<CivHooks::CvUnit_getAlwaysHostileCount>(host, &ReplaceCvUnit_getAlwaysHostileCount);

Code

22135int CvUnit::getAlwaysHostileCount() const22136{22137	VALIDATE_OBJECT22138	return m_iAlwaysHostileCount;22139}

Calls

Called by