CvPlot::getTeam() const
- Defined in
- CvPlot.h, line 249
- Class
- CvPlot
- Not a hook point
- written in a header
Code
249 TeamTypes getTeam() const250 {251 PlayerTypes playerID = getOwner();252 if(playerID != NO_PLAYER)253 {254 return CvPlayer::getTeam(playerID);255 }256 else257 {258 return NO_TEAM;259 }260 }
Calls
Called by
71 functions in 16 files
- CvAIOperationNukeAttack::FindBestTarget()
- IgnoreUnitsCost(CvAStarNode *, CvAStarNode *, int, const void *, CvAStar *)
- IgnoreUnitsValid(CvAStarNode *, CvAStarNode *, 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 *)
- TradeRouteWaterPathCost(CvAStarNode *, CvAStarNode *, int, const void *, CvAStar *)
- CvDllPlot::GetTeam() const
- CvHomelandAI::ExecuteMovesToSafestPlot()
- CvHomelandAI::FindHomelandTargets()
- CvPlayer::disbandUnit(bool)
- CvPlayer::receiveGoody(CvPlot *, GoodyTypes, CvUnit *)
- CvPlayerAI::AI_captureUnit(UnitTypes, CvPlot *)
- CvPlayerAI::FindBestArtistTargetPlot(CvUnit *, int &)
- CvPlot::DoFindCityToLinkResourceTo(CvCity *)
- CvPlot::GetAdjacentFriendlyCity(TeamTypes, bool) const
- CvPlot::GetNumAdjacentDifferentTeam(TeamTypes, bool) const
- CvPlot::IsAdjacentOwnedByOtherTeam(TeamTypes) const
- CvPlot::IsFriendlyTerritory(PlayerTypes) const
- CvPlot::SetImprovementPillaged(bool, bool)
- CvPlot::canBuild(BuildTypes, PlayerTypes, bool, bool) const
- CvPlot::changeVisibilityCount(TeamTypes, int, InvisibleTypes, bool, bool, CvUnit *)
- CvPlot::defenseModifier(TeamTypes, bool, bool) const
- CvPlot::doImprovement()
- CvPlot::getFeatureProduction(BuildTypes, PlayerTypes, CvCity **) const
- CvPlot::getNumResourceForPlayer(PlayerTypes) const
- CvPlot::getYieldWithBuild(BuildTypes, YieldTypes, bool, PlayerTypes) const
- CvPlot::isAdjacentTeam(TeamTypes, bool) const
- CvPlot::isFriendlyCity(const CvUnit &, bool) const
- CvPlot::isFriendlyCityOrPassableImprovement(PlayerTypes, bool, const CvUnit *) const
- CvPlot::isValidRoute(const CvUnit *) const
- CvPlot::isVisibleWorked() const
- CvPlot::setImprovementType(ImprovementTypes, PlayerTypes)
- CvPlot::setOwner(PlayerTypes, int, bool, bool)
- CvPlot::setPlotType(PlotTypes, bool, bool, bool)
- CvPlot::updateSight(bool)
- CvPlot::verifyUnitValidPlot()
- CvTacticalAI::ExecuteMovesToSafestPlot()
- CvTacticalAI::FindTacticalTargets()
- CvTacticalAI::PlotSingleHexOperationMoves(CvAIEscortedOperation *)
- CvTacticalAnalysisMap::AddToDominanceZones(int, CvTacticalAnalysisCell *)
- CvTacticalAnalysisMap::PopulateCell(int, CvPlot *)
- CvTeam::SetCurrentEra(EraTypes)
- CvTeam::countEnemyDangerByArea(CvArea *) const
- CvTeam::setHasTech(TechTypes, bool, PlayerTypes, bool, bool)
- CvTradeAI::ScoreFoodTR(const TradeConnection &, CvCity *)
- CvTradeAI::ScoreInternationalTR(const TradeConnection &)
- CvTradeAI::ScoreProductionTR(const TradeConnection &, std::vector<CvCity *>)
- CvTradeAI::ScoreWonderTR(const TradeConnection &, std::vector<CvCity *>)
- CvUnit::DoAttrition()
- CvUnit::GetDeclareWarMove(const CvPlot &) const
- CvUnit::GetDeclareWarRangeStrike(const CvPlot &) const
- CvUnit::IsNearEnemyCitadel(int &)
- CvUnit::UnitAttack(int, int, int, int)
- CvUnit::canBuyCityState(const CvPlot *, bool) const
- CvUnit::canEnterTerrain(const CvPlot &, byte) const
- CvUnit::canGift(bool, bool) const
- CvUnit::canMoveInto(const CvPlot &, byte) const
- CvUnit::canTrade(const CvPlot *, bool) const
- CvUnit::healRate(const CvPlot *) const
- CvUnit::isActionRecommended(int)
- CvUnit::isNukeVictim(const CvPlot *, TeamTypes) const
- CvUnit::jumpToNearestValidPlot()
- CvUnit::jumpToNearestValidPlotWithinRange(int)
- CvUnit::pillage()
- CvUnit::potentialWarAction(const CvPlot *) const
- CvUnit::setXY(int, int, bool, bool, bool, bool, bool)
- CvUnitCombat::GenerateNuclearCombatInfo(CvUnit &, CvPlot &, CvCombatInfo *)
- CvUnitMission::ContinueMission(UnitHandle, int, int)
- CvUnitMovement::GetCostsForMove(const CvUnit *, const CvPlot *, const CvPlot *, int, int &, int &, int &)
- CvLuaPlot::lGetTeam(lua_State *)