Bazaar developer reference

CvCity::isCoastal(int) const

Defined in
CvCity.cpp, line 7235
Class
CvCity
Hook name
CivHooks::CvCity_isCoastal

Hooks

static bool BeforeCvCity_isCoastal(const CvCity* self, int iMinWaterSize, bool& result);static void AfterCvCity_isCoastal(const CvCity* self, int iMinWaterSize, bool& result);static bool ReplaceCvCity_isCoastal(bool (*original)(const CvCity*, int), const CvCity* self, int iMinWaterSize);CivRegisterBefore<CivHooks::CvCity_isCoastal>(host, &BeforeCvCity_isCoastal);CivRegisterAfter<CivHooks::CvCity_isCoastal>(host, &AfterCvCity_isCoastal);CivRegisterReplace<CivHooks::CvCity_isCoastal>(host, &ReplaceCvCity_isCoastal);

Code

7235bool CvCity::isCoastal(int iMinWaterSize) const7236{7237	VALIDATE_OBJECT7238	return plot()->isCoastalLand(iMinWaterSize);7239}

Calls

Called by