Bazaar developer reference

CvDllUnit::GetDamage() const

Defined in
CvDllUnit.cpp, line 94
Class
CvDllUnit
Hook name
CivHooks::CvDllUnit_GetDamage

Hooks

static bool BeforeCvDllUnit_GetDamage(const CvDllUnit* self, int& result);static void AfterCvDllUnit_GetDamage(const CvDllUnit* self, int& result);static int ReplaceCvDllUnit_GetDamage(int (*original)(const CvDllUnit*), const CvDllUnit* self);// CivHooks.h gives this hook point no types, so nothing checks these hooks' parameters.host->RegisterHook(host->pluginIndex, CivHooks::CvDllUnit_GetDamage::ID, CIV_HOOK_BEFORE, (void*)&BeforeCvDllUnit_GetDamage);host->RegisterHook(host->pluginIndex, CivHooks::CvDllUnit_GetDamage::ID, CIV_HOOK_AFTER, (void*)&AfterCvDllUnit_GetDamage);host->RegisterHook(host->pluginIndex, CivHooks::CvDllUnit_GetDamage::ID, CIV_HOOK_REPLACE, (void*)&ReplaceCvDllUnit_GetDamage);

Code

94int CvDllUnit::GetDamage() const95{96	return m_pUnit->getDamage();97}

Calls