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
- CvBarbarians::DoSpawnBarbarianUnit(CvPlot *, bool, bool)
- CityStrategyAIHelpers::IsTestCityStrategy_NeedNavalGrowth(AICityStrategyTypes, CvCity *)
- CvMap::DoPlaceNaturalWonders()
- CvMilitaryAI::EvaluateMilitaryApproaches(CvCity *, bool, bool)
- CvPlayer::GetGreatAdmiralSpawnPlot(CvUnit *)
- CvPlot::IsFeatureLake() const
- CvPlot::calculateNatureYield(YieldTypes, TeamTypes, bool) const
- CvPlot::calculateYield(YieldTypes, bool)
- CvPlot::getYieldWithBuild(BuildTypes, YieldTypes, bool, PlayerTypes) const
- CvPlot::isFreshWater() const
- CvPlot::setArea(int)
- CvUnit::PlotValid(CvPlot *, byte) const
- CvUnit::canEnterTerrain(const CvPlot &, byte) const
- CvUnit::jumpToNearestValidPlot()
- CvLuaPlot::lIsLake(lua_State *)