Bazaar developer reference

CvUnit::getDamage() const

Defined in
CvUnit.cpp, line 16629
Class
CvUnit
Hook name
CivHooks::CvUnit_getDamage

Hooks

static bool BeforeCvUnit_getDamage(const CvUnit* self, int& result);static void AfterCvUnit_getDamage(const CvUnit* self, int& result);static int ReplaceCvUnit_getDamage(int (*original)(const CvUnit*), const CvUnit* self);CivRegisterBefore<CivHooks::CvUnit_getDamage>(host, &BeforeCvUnit_getDamage);CivRegisterAfter<CivHooks::CvUnit_getDamage>(host, &AfterCvUnit_getDamage);CivRegisterReplace<CivHooks::CvUnit_getDamage>(host, &ReplaceCvUnit_getDamage);

Code

16629int CvUnit::getDamage() const16630{16631	VALIDATE_OBJECT16632	return m_iDamage;16633}

Calls

Called by

60 functions in 11 files