Bazaar developer reference

CvPlot::isLake() const

Defined in
CvPlot.cpp, line 1184
Class
CvPlot
Hook name
CivHooks::CvPlot_isLake

Hooks

static bool BeforeCvPlot_isLake(const CvPlot* self, bool& result);static void AfterCvPlot_isLake(const CvPlot* self, bool& result);static bool ReplaceCvPlot_isLake(bool (*original)(const CvPlot*), const CvPlot* self);CivRegisterBefore<CivHooks::CvPlot_isLake>(host, &BeforeCvPlot_isLake);CivRegisterAfter<CivHooks::CvPlot_isLake>(host, &AfterCvPlot_isLake);CivRegisterReplace<CivHooks::CvPlot_isLake>(host, &ReplaceCvPlot_isLake);

Code

1184bool CvPlot::isLake() const1185{1186	CvLandmass* pLandmass = GC.getMap().getLandmass(m_iLandmass);11871188	if(pLandmass != NULL)1189	{1190		return pLandmass->isLake();1191	}11921193	return false;1194}

Calls

Called by