Bazaar developer reference

CvPlot::IsNaturalWonder() const

Defined in
CvPlot.cpp, line 6353
Class
CvPlot
Hook name
CivHooks::CvPlot_IsNaturalWonder

Hooks

static bool BeforeCvPlot_IsNaturalWonder(const CvPlot* self, bool& result);static void AfterCvPlot_IsNaturalWonder(const CvPlot* self, bool& result);static bool ReplaceCvPlot_IsNaturalWonder(bool (*original)(const CvPlot*), const CvPlot* self);CivRegisterBefore<CivHooks::CvPlot_IsNaturalWonder>(host, &BeforeCvPlot_IsNaturalWonder);CivRegisterAfter<CivHooks::CvPlot_IsNaturalWonder>(host, &AfterCvPlot_IsNaturalWonder);CivRegisterReplace<CivHooks::CvPlot_IsNaturalWonder>(host, &ReplaceCvPlot_IsNaturalWonder);

Code

6352/// Does this plot have a natural wonder?6353bool CvPlot::IsNaturalWonder() const6354{6355	FeatureTypes eFeature = getFeatureType();63566357	if(eFeature == NO_FEATURE)6358		return false;63596360	return GC.getFeatureInfo(eFeature)->IsNaturalWonder();6361}

Calls

Called by