Bazaar developer reference

CvUnit::IsSapper() const

Defined in
CvUnit.cpp, line 19133
Class
CvUnit
Hook name
CivHooks::CvUnit_IsSapper

Hooks

static bool BeforeCvUnit_IsSapper(const CvUnit* self, bool& result);static void AfterCvUnit_IsSapper(const CvUnit* self, bool& result);static bool ReplaceCvUnit_IsSapper(bool (*original)(const CvUnit*), const CvUnit* self);CivRegisterBefore<CivHooks::CvUnit_IsSapper>(host, &BeforeCvUnit_IsSapper);CivRegisterAfter<CivHooks::CvUnit_IsSapper>(host, &AfterCvUnit_IsSapper);CivRegisterReplace<CivHooks::CvUnit_IsSapper>(host, &ReplaceCvUnit_IsSapper);

Code

19133bool CvUnit::IsSapper() const19134{19135	return (m_iSapperCount > 0);19136}

Called by