Bazaar developer reference

CvPlot::isFighting() const

Defined in
CvPlot.cpp, line 4301
Class
CvPlot
Hook name
CivHooks::CvPlot_isFighting

Hooks

static bool BeforeCvPlot_isFighting(const CvPlot* self, bool& result);static void AfterCvPlot_isFighting(const CvPlot* self, bool& result);static bool ReplaceCvPlot_isFighting(bool (*original)(const CvPlot*), const CvPlot* self);CivRegisterBefore<CivHooks::CvPlot_isFighting>(host, &BeforeCvPlot_isFighting);CivRegisterAfter<CivHooks::CvPlot_isFighting>(host, &AfterCvPlot_isFighting);CivRegisterReplace<CivHooks::CvPlot_isFighting>(host, &ReplaceCvPlot_isFighting);

Code

4300//	Return true if any fighting is occurring in the plot.4301bool CvPlot::isFighting() const4302{4303	return (isUnitFighting() || isCityFighting());4304}

Calls

Called by