CvPlot::area() const
- Defined in
- CvPlot.cpp, line 4585
- Class
- CvPlot
- Hook name
CivHooks::CvPlot_area
Hooks
static bool BeforeCvPlot_area(const CvPlot* self, CvArea*& result);static void AfterCvPlot_area(const CvPlot* self, CvArea*& result);static CvArea* ReplaceCvPlot_area(CvArea* (*original)(const CvPlot*), const CvPlot* self);CivRegisterBefore<CivHooks::CvPlot_area>(host, &BeforeCvPlot_area);CivRegisterAfter<CivHooks::CvPlot_area>(host, &AfterCvPlot_area);CivRegisterReplace<CivHooks::CvPlot_area>(host, &ReplaceCvPlot_area);
Code
4585CvArea* CvPlot::area() const4586{4587 return GC.getMap().getArea(getArea());4588}
Calls
Called by
37 functions in 13 files
- CvAIOperationFoundCity::ArmyInPosition(CvArmyAI *)
- CvBarbarians::DoCamps()
- CvBuilderTaskingAI::FindTurnsAway(CvUnit *, CvPlot *, bool)
- CvBuilderTaskingAI::ShouldBuilderConsiderPlot(CvUnit *, CvPlot *)
- CvCity::area() const
- CvHomelandAI::IsValidExplorerEndTurnPlot(const CvUnit *, CvPlot *) const
- CvMap::DoPlaceNaturalWonders()
- CvMap::findCity(int, int, PlayerTypes, TeamTypes, bool, bool, TeamTypes, DirectionTypes, const CvCity *)
- CvPlayer::receiveGoody(CvPlot *, GoodyTypes, CvUnit *)
- CvPlayer::setStartingPlot(CvPlot *)
- CvPlot::canHaveResource(ResourceTypes, bool, bool) const
- CvPlot::canTrain(UnitTypes, bool, bool) const
- CvPlot::isPotentialCityWorkForArea(CvArea *) const
- CvPlot::secondWaterArea() const
- CvPlot::setArea(int)
- CvPlot::setImprovementType(ImprovementTypes, PlayerTypes)
- CvPlot::setNEOfRiver(bool, FlowDirectionTypes)
- CvPlot::setNWOfRiver(bool, FlowDirectionTypes)
- CvPlot::setOwner(PlayerTypes, int, bool, bool)
- CvPlot::setPlotType(PlotTypes, bool, bool, bool)
- CvPlot::setResourceType(ResourceTypes, int, bool)
- CvPlot::setRevealed(TeamTypes, bool, CvUnit *, bool, TeamTypes)
- CvPlot::setWOfRiver(bool, FlowDirectionTypes)
- CvPlot::updateYield()
- CvPlot::waterArea() const
- CvSiteEvaluatorForSettler::PlotFoundValue(CvPlot *, CvPlayer *, YieldTypes, bool)
- CvTacticalAI::FindBarbarianExploreTarget(UnitHandle)
- CvTacticalAI::FindBarbarianGankTradeRouteTarget(UnitHandle)
- CvTacticalAI::FindBestBarbarianSeaMove(UnitHandle)
- CvTeam::countEnemyDangerByArea(CvArea *) const
- CvUnit::IsEnemyInMovementRange(bool, bool)
- CvUnit::area() const
- CvUnit::healRate(const CvPlot *) const
- CvUnit::jumpToNearestValidPlot()
- CvUnit::jumpToNearestValidPlotWithinRange(int)
- CvUnit::setXY(int, int, bool, bool, bool, bool, bool)
- CvLuaPlot::lArea(lua_State *)