Bazaar developer reference

CvPlot::isCityFighting() const

Defined in
CvPlot.cpp, line 4331
Class
CvPlot
Hook name
CivHooks::CvPlot_isCityFighting

Hooks

static bool BeforeCvPlot_isCityFighting(const CvPlot* self, bool& result);static void AfterCvPlot_isCityFighting(const CvPlot* self, bool& result);static bool ReplaceCvPlot_isCityFighting(bool (*original)(const CvPlot*), const CvPlot* self);CivRegisterBefore<CivHooks::CvPlot_isCityFighting>(host, &BeforeCvPlot_isCityFighting);CivRegisterAfter<CivHooks::CvPlot_isCityFighting>(host, &AfterCvPlot_isCityFighting);CivRegisterReplace<CivHooks::CvPlot_isCityFighting>(host, &ReplaceCvPlot_isCityFighting);

Code

4330//	Return true if any cities are fighting in the plot.4331bool CvPlot::isCityFighting() const4332{4333	CvCity* pkCity = getPlotCity();4334	if(pkCity)4335		return pkCity->isFighting();43364337	return false;4338}

Calls

Called by