CvPlot::getUnitLimit() const
- Defined in
- CvPlot.h, line 185
- Class
- CvPlot
- Not a hook point
- written in a header
Code
184#if defined(MOD_GLOBAL_STACKING_RULES)185 inline int getUnitLimit() const 186 {187 return isCity() ? GC.getCITY_UNIT_LIMIT() : (GC.getPLOT_UNIT_LIMIT() + getAdditionalUnitsFromImprovement());188 }
Calls
Called by
- FindValidDestinationDest(int, int, const void *, CvAStar *)
- PathCost(CvAStarNode *, CvAStarNode *, int, const void *, CvAStar *)
- PathValid(CvAStarNode *, CvAStarNode *, int, const void *, CvAStar *)
- TacticalAnalysisMapPathValid(CvAStarNode *, CvAStarNode *, int, const void *, CvAStar *)
- CvBuilderTaskingAI::ShouldBuilderConsiderPlot(CvUnit *, CvPlot *)
- CvPlayer::GetGreatAdmiralSpawnPlot(CvUnit *)
- CvPlayer::RespositionInvalidUnits()
- CvPlayer::receiveGoody(CvPlot *, GoodyTypes, CvUnit *)
- CvPlot::getNumFriendlyUnitsOfType(const CvUnit *, bool) const
- CvPlot::verifyUnitValidPlot()
- CvUnit::CanSwapWithUnitHere(CvPlot &) const
- CvUnit::CanUpgradeTo(UnitTypes, bool) const
- CvUnit::IsCanAttackWithMoveNow() const
- CvUnit::IsHasNoValidMove() const
- CvUnit::canFortify(const CvPlot *) const
- CvUnit::canHold(const CvPlot *) const
- CvUnit::canMoveInto(const CvPlot &, byte) const
- CvUnit::canRangeStrike() const
- CvUnit::canSentry(const CvPlot *) const
- CvUnit::canSleep(const CvPlot *) const
- CvUnit::jumpToNearestValidPlot()
- CvUnit::jumpToNearestValidPlotWithinRange(int)
- CvLuaPlot::lGetUnitLimit(lua_State *)