CvCity::isFighting() const
- Defined in
- CvCity.cpp, line 17166
- Class
- CvCity
- Hook name
CivHooks::CvCity_isFighting
Hooks
static bool BeforeCvCity_isFighting(const CvCity* self, bool& result);static void AfterCvCity_isFighting(const CvCity* self, bool& result);static bool ReplaceCvCity_isFighting(bool (*original)(const CvCity*), const CvCity* self);CivRegisterBefore<CivHooks::CvCity_isFighting>(host, &BeforeCvCity_isFighting);CivRegisterAfter<CivHooks::CvCity_isFighting>(host, &AfterCvCity_isFighting);CivRegisterReplace<CivHooks::CvCity_isFighting>(host, &ReplaceCvCity_isFighting);
Code
17165// Return true if the city is fighting with someone. Equivalent to the CvUnit call.17166bool CvCity::isFighting() const17167{17168 return getCombatUnit() != NULL;17169}