CvPlot::isOwned() const
- Defined in
- CvPlot.cpp, line 3482
- Class
- CvPlot
- Hook name
CivHooks::CvPlot_isOwned
Hooks
static bool BeforeCvPlot_isOwned(const CvPlot* self, bool& result);static void AfterCvPlot_isOwned(const CvPlot* self, bool& result);static bool ReplaceCvPlot_isOwned(bool (*original)(const CvPlot*), const CvPlot* self);CivRegisterBefore<CivHooks::CvPlot_isOwned>(host, &BeforeCvPlot_isOwned);CivRegisterAfter<CivHooks::CvPlot_isOwned>(host, &AfterCvPlot_isOwned);CivRegisterReplace<CivHooks::CvPlot_isOwned>(host, &ReplaceCvPlot_isOwned);
Code
3482bool CvPlot::isOwned() const3483{3484 return (getOwner() != NO_PLAYER);3485}
Calls
Called by
39 functions in 16 files
- IgnoreUnitsValid(CvAStarNode *, CvAStarNode *, int, const void *, CvAStar *)
- PathValid(CvAStarNode *, CvAStarNode *, int, const void *, CvAStar *)
- CvBarbarians::DoCamps()
- CvCitySpecializationAI::PlotValueForScience(CvPlot *)
- CvCitySpecializationAI::PlotValueForSpecificYield(CvPlot *, YieldTypes)
- CvDiplomacyAI::DoUpdateOnePlayerMilitaryAggressivePosture(PlayerTypes)
- CvGrandStrategyAI::GetConquestPriority()
- CvMap::syncRandPlot(int, int, int, int)
- CvPlayer::DoUpdateCramped()
- CvPlayer::GetGreatAdmiralSpawnPlot(CvUnit *)
- CvPlot::IsHomeFrontForPlayer(PlayerTypes) const
- CvPlot::canBuild(BuildTypes, PlayerTypes, bool, bool) const
- CvPlot::doTurn()
- CvPlot::processArea(CvArea *, int)
- CvPlot::setImprovementType(ImprovementTypes, PlayerTypes)
- CvPlot::setOwner(PlayerTypes, int, bool, bool)
- CvPlot::setOwnershipDuration(int)
- CvPlot::setPlotType(PlotTypes, bool, bool, bool)
- CvPlot::setRouteType(RouteTypes)
- CvPlot::updateSight(bool)
- CvPlot::updateWorkingCity()
- CvPlot::verifyUnitValidPlot()
- CvCitySiteEvaluator::CanFound(CvPlot *, const CvPlayer *, bool) const
- CvCitySiteEvaluator::ComputeHappinessValue(CvPlot *, CvPlayer *)
- CvCitySiteEvaluator::ComputeTradeableResourceValue(CvPlot *, CvPlayer *)
- CvTacticalAI::FindBarbarianExploreTarget(UnitHandle)
- CvTacticalAI::FindBestBarbarianSeaMove(UnitHandle)
- CvTacticalAI::FindTacticalTargets()
- CvTacticalAnalysisMap::AddToDominanceZones(int, CvTacticalAnalysisCell *)
- CvTacticalAnalysisMap::PopulateCell(int, CvPlot *)
- CvTeam::SetCurrentEra(EraTypes)
- CvTeam::setHasTech(TechTypes, bool, PlayerTypes, bool, bool)
- CvUnit::canGift(bool, bool) const
- CvUnit::canMoveInto(const CvPlot &, byte) const
- CvUnit::canPillage(const CvPlot *) const
- CvUnit::pillage()
- CvUnitMission::ContinueMission(UnitHandle, int, int)
- CvWorldBuilderMapLoader::InitMap()
- CvLuaPlot::lIsOwned(lua_State *)