CvUnit::isNukeImmune() const
- Defined in
- CvUnit.cpp, line 14682
- Class
- CvUnit
- Hook name
CivHooks::CvUnit_isNukeImmune
Hooks
static bool BeforeCvUnit_isNukeImmune(const CvUnit* self, bool& result);static void AfterCvUnit_isNukeImmune(const CvUnit* self, bool& result);static bool ReplaceCvUnit_isNukeImmune(bool (*original)(const CvUnit*), const CvUnit* self);CivRegisterBefore<CivHooks::CvUnit_isNukeImmune>(host, &BeforeCvUnit_isNukeImmune);CivRegisterAfter<CivHooks::CvUnit_isNukeImmune>(host, &AfterCvUnit_isNukeImmune);CivRegisterReplace<CivHooks::CvUnit_isNukeImmune>(host, &ReplaceCvUnit_isNukeImmune);
Code
14682bool CvUnit::isNukeImmune() const14683{14684 VALIDATE_OBJECT14685 return (getNukeImmuneCount() > 0);14686}