Bazaar developer reference

CvUnit::IsHurt() const

Defined in
CvUnit.cpp, line 12024
Class
CvUnit
Hook name
CivHooks::CvUnit_IsHurt

Hooks

static bool BeforeCvUnit_IsHurt(const CvUnit* self, bool& result);static void AfterCvUnit_IsHurt(const CvUnit* self, bool& result);static bool ReplaceCvUnit_IsHurt(bool (*original)(const CvUnit*), const CvUnit* self);CivRegisterBefore<CivHooks::CvUnit_IsHurt>(host, &BeforeCvUnit_IsHurt);CivRegisterAfter<CivHooks::CvUnit_IsHurt>(host, &AfterCvUnit_IsHurt);CivRegisterReplace<CivHooks::CvUnit_IsHurt>(host, &ReplaceCvUnit_IsHurt);

Code

12024bool CvUnit::IsHurt() const12025{12026	VALIDATE_OBJECT12027	return (getDamage() > 0);12028}

Calls

Called by