CvArea::isWater() const
- Defined in
- CvArea.cpp, line 326
- Class
- CvArea
- Hook name
CivHooks::CvArea_isWater
Hooks
static bool BeforeCvArea_isWater(const CvArea* self, bool& result);static void AfterCvArea_isWater(const CvArea* self, bool& result);static bool ReplaceCvArea_isWater(bool (*original)(const CvArea*), const CvArea* self);CivRegisterBefore<CivHooks::CvArea_isWater>(host, &BeforeCvArea_isWater);CivRegisterAfter<CivHooks::CvArea_isWater>(host, &AfterCvArea_isWater);CivRegisterReplace<CivHooks::CvArea_isWater>(host, &ReplaceCvArea_isWater);
Code
325// Is the area made up of water plots?326bool CvArea::isWater() const327{328 return m_bWater;329}
Called by
- CvAIOperation::GetOperationStartCity() const
- CvArea::countCoastalLand() const
- CvBarbarians::GetRandomBarbarianUnitType(CvPlot *, UnitAITypes)
- CvMap::DoPlaceNaturalWonders()
- CvMap::findBiggestArea(bool)
- CvMap::getNumLandAreas()
- CvPlayer::GetBestSettleAreas(int, int &, int &)
- CvPlayerAI::AI_updateFoundValues(bool)
- CvPlot::setPlotType(PlotTypes, bool, bool, bool)
- CvLuaArea::lIsWater(lua_State *)