CvTeam
- Declared in
- CvTeam.h, line 19
One object for each team. Every player is on a team: alone in most games, with its teammates in a team game. City-states and the barbarians each have a team of their own. GET_TEAM(id) returns the team with that ID, and CvPlayer::getTeam gives a player's team ID.
- Turns:
CvTeam::doTurnruns once a game turn for each living team, as the game turn ends. - Techs: the team, not the player, knows techs.
CvTeam::GetTeamTechsreturns them, aCvTeamTechs, andCvTeamTechs::HasTechtells whether the team knows one. The front page's "React to a new tech or policy" says where a tech is gained.CvTeam::GetCurrentEragives the team's era. - Meeting:
CvTeam::isHasMettells whether it has met another team, andCvTeam::meetrecords a first meeting for both teams. - War and peace:
CvTeam::isAtWartells whether it is at war with another team. War starts inCvTeam::declareWarand ends inCvTeam::makePeace(a map made in WorldBuilder can also start a game at war). - Agreements:
CvTeam::HasEmbassyAtTeam,CvTeam::IsAllowsOpenBordersToTeamandCvTeam::IsHasDefensivePact.
Functions
- AddNotification(NotificationTypes, const char *, const char *, int, int, int, int)
- addTeam(TeamTypes)
- announceTechToPlayers(TechTypes, bool)
- cancelDefensivePacts()
- CancelResearchAgreement(TeamTypes)
- canChangeWarPeace(TeamTypes) const
- canDeclareWar(TeamTypes, PlayerTypes) const
- canDefensiveEmbark() const
- canEmbark() const
- canEmbarkAllWaterPassage() const
- canLaunch(VictoryTypes) const
- changeAliveCount(int)
- changeAllowEmbassyTradingAllowedCount(int)
- changeBorderObstacleCount(int)
- changeBridgeBuildingCount(int)
- changeBuildingClassCount(BuildingClassTypes, int)
- changeBuildTimeChange(BuildTypes, int)
- changeCanEmbarkCount(int)
- changeCityAutomatonWorkersChange(int)
- changeCityWorkingChange(int)
- changeDefensiveEmbarkCount(int)
- changeDefensivePactTradingAllowedCount(int)
- changeEmbarkedAllWaterPassage(int)
- changeEmbarkedExtraMoves(int)
- changeEverAliveCount(int)
- changeExtraMoves(DomainTypes, int)
- changeExtraWaterSeeFromCount(int)
- changeFeatureYieldChange(FeatureTypes, YieldTypes, int)
- changeForceTeamVoteEligibilityCount(VoteSourceTypes, int)
- changeGoldTradingCount(int)
- changeImprovementFreshWaterYieldChange(ImprovementTypes, YieldTypes, int)
- changeImprovementNoFreshWaterYieldChange(ImprovementTypes, YieldTypes, int)
- changeImprovementYieldChange(ImprovementTypes, YieldTypes, int)
- changeMapTradingCount(int)
- changeNukeInterception(int)
- changeNumCities(int)
- changeNumMembers(int)
- ChangeNumMinorCivsAttacked(int)
- ChangeNumNaturalWondersDiscovered(int)
- ChangeNumTurnsAtWar(TeamTypes, int)
- ChangeNumTurnsLockedIntoWar(TeamTypes, int)
- changeObsoleteBuildingCount(BuildingTypes, int)
- changeOpenBordersTradingAllowedCount(int)
- changePermanentAllianceTradingCount(int)
- changeProjectCount(ProjectTypes, int)
- changeProjectMaking(ProjectTypes, int)
- ChangeResearchAgreementTradingAllowedCount(int)
- changeRouteChange(RouteTypes, int)
- changeTechShareCount(int, int)
- changeTechTradingCount(int)
- changeTerrainTradeCount(TerrainTypes, int)
- changeTerrainYieldChange(TerrainTypes, YieldTypes, int)
- changeTotalLand(int)
- changeTotalPopulation(int)
- ChangeTradeAgreementTradingAllowedCount(int)
- changeUnitClassCount(UnitClassTypes, int)
- changeVictoryCountdown(VictoryTypes, int)
- changeVictoryPoints(int)
- changeWaterWorkCount(int)
- CloseEmbassyAtTeam(TeamTypes)
- countEnemyDangerByArea(CvArea *) const
- countNumCitiesByArea(CvArea *) const
- countNumHumanGameTurnActive() const
- countNumUnitsByArea(CvArea *) const
- countTotalPopulationByArea(CvArea *) const
- CvTeam() not a hook point
- declareWar(TeamTypes, bool, PlayerTypes)
- DoBarbarianTech()
- DoDeclareWar(PlayerTypes, bool, TeamTypes, bool, bool)
- DoMakePeace(PlayerTypes, bool, TeamTypes, bool, bool)
- DoMinorCivTech()
- DoNowAtWarOrPeace(TeamTypes, bool)
- DoTestSmallAwards()
- doTurn()
- DoUpdateBestRoute()
- enhanceBuilding(BuildingTypes, int)
- EvacuateDiplomatsAtTeam(TeamTypes)
- finalizeProjectArtTypes()
- freeStatics()
- getAliveCount() const
- getAllowEmbassyTradingAllowedCount() const
- getAtWarCount(bool) const
- GetBestPossibleRoute()
- getBorderObstacleCount() const
- getBridgeBuildingCount() const
- getBuildingClassCount(BuildingClassTypes) const
- getBuildingClassCountPlusMaking(BuildingClassTypes) const
- getBuildingClassMaking(BuildingClassTypes) const
- getBuildTimeChange(BuildTypes) const
- getCanEmbarkCount() const
- GetCityAutomatonWorkersChange() const
- GetCityWorkingChange() const
- GetCurrentEra() const
- getDefensiveEmbarkCount() const
- getDefensivePactCount(TeamTypes) const
- getDefensivePactTradingAllowedCount() const
- getDefensivePower() const
- getEmbarkedAllWaterPassage() const
- getEmbarkedExtraMoves() const
- getEnemyPower() const
- getEverAliveCount() const
- getExtraMoves(DomainTypes) const
- getExtraWaterSeeFromCount() const
- getFeatureYieldChange(FeatureTypes, YieldTypes) const
- getForceTeamVoteEligibilityCount(VoteSourceTypes) const
- getGoldTradingCount() const
- getHandicapType() const
- getHasMetCivCount(bool) const
- GetID() const
- GetIgnoreWarningCount(TeamTypes)
- getImprovementFreshWaterYieldChange(ImprovementTypes, YieldTypes) const
- getImprovementNoFreshWaterYieldChange(ImprovementTypes, YieldTypes) const
- getImprovementYieldChange(ImprovementTypes, YieldTypes) const
- GetKilledByTeam() const
- getLeaderID() const
- GetLiberatedByTeam() const
- getMapTradingCount() const
- getName() const
- getNameKey() const
- getNukeInterception() const
- getNumCities() const
- getNumMembers() const
- GetNumMinorCivsAttacked() const
- GetNumNaturalWondersDiscovered() const
- getNumNukeUnits() const
- GetNumTurnsAtWar(TeamTypes) const
- GetNumTurnsLockedIntoWar(TeamTypes) const
- getObsoleteBuildingCount(BuildingTypes) const
- getOpenBordersTradingAllowedCount() const
- getPermanentAllianceTradingCount() const
- getPower() const
- getProjectArtType(ProjectTypes, int) const
- getProjectCount(ProjectTypes) const
- getProjectDefaultArtType(ProjectTypes) const
- GetProjectedVotesFromCivs() const
- GetProjectedVotesFromLiberatedMinors() const
- GetProjectedVotesFromMinorAllies() const
- getProjectMaking(ProjectTypes) const
- GetResearchAgreementTradingAllowedCount() const
- getRouteChange(RouteTypes) const
- GetScore() const
- getSecretaryID() const
- getTeam(TeamTypes) not a hook point
- GetTeamTechs() const
- GetTeamVotingForInDiplo() const
- getTechShareCount(int) const
- getTechTradingCount() const
- getTerrainTradeCount(TerrainTypes) const
- getTerrainYieldChange(TerrainTypes, YieldTypes) const
- getTotalLand() const
- GetTotalNumResearchAgreements() const
- getTotalPopulation() const
- GetTotalProjectedVotes() const
- GetTotalSecuredVotes() const
- GetTradeAgreementTradingAllowedCount() const
- GetTurnMadePeaceTreatyWithTeam(TeamTypes) const
- GetTurnsSinceMeetingTeam(TeamTypes) const
- GetTurnTeamMet(TeamTypes) const
- getUnitClassCount(UnitClassTypes) const
- getUnitClassCountPlusMaking(UnitClassTypes) const
- getUnitClassMaking(UnitClassTypes) const
- getVictoryCountdown(VictoryTypes) const
- getVictoryDelay(VictoryTypes) const
- getVictoryPoints() const
- getWaterWorkCount() const
- HasCommonEnemy(TeamTypes) const
- HasEmbassyAtTeam(TeamTypes) const
- hasMetHuman() const
- HasSpyAtTeam(TeamTypes) const
- HasTechForWorldCongress() const
- HavePolicyInTeam(PolicyTypes)
- init(TeamTypes)
- initStatics()
- isAggressor(TeamTypes) const
- isAlive() const not a hook point
- isAllowEmbassyTradingAllowed() const
- IsAllowsOpenBordersToTeam(TeamTypes) const
- isAtWar(TeamTypes) const
- isAtWarWithHumans() const
- isBarbarian() const
- isBorderObstacle() const
- isBridgeBuilding() const
- IsBrokenBorderPromise() const
- IsBrokenCityStatePromise() const
- IsBrokenExpansionPromise() const
- IsBrokenMilitaryPromise() const
- isBuildingClassMaxedOut(BuildingClassTypes, int) const
- isCityAutomatonWorkersChange() const
- isCityWorkingChange() const
- isDefensivePactTradingAllowed() const
- isDefensivePactTradingAllowedWithTeam(TeamTypes) const
- isEverAlive() const
- isExtraWaterSeeFrom() const
- isForcePeace(TeamTypes) const
- isForceRevealedResource(ResourceTypes) const
- isForceTeamVoteEligible(VoteSourceTypes) const
- isFriendlyTerritory(TeamTypes) const
- isGoldTrading() const
- IsHasBrokenPeaceTreaty() const
- IsHasDefensivePact(TeamTypes) const
- IsHasFoundPlayersTerritory(PlayerTypes) const
- isHasMet(TeamTypes) const
- IsHasResearchAgreement(TeamTypes) const
- IsHasTradeAgreement(TeamTypes) const
- IsHomeOfUnitedNations() const
- isHuman() const
- isMajorCiv() const
- isMapCentering() const
- isMapTrading() const
- isMinorCiv() const
- IsMinorCivAggressor() const
- IsMinorCivWarmonger() const
- isObserver() const
- isObsoleteBuilding(BuildingTypes) const
- isOpenBordersTradingAllowed() const
- isOpenBordersTradingAllowedWithTeam(TeamTypes) const
- isPacifier(TeamTypes) const
- isPermanentAllianceTrading() const
- isPermanentWarPeace(TeamTypes) const
- isProjectAndArtMaxedOut(ProjectTypes) const
- isProjectMaxedOut(ProjectTypes, int) const
- IsResearchAgreementTradingAllowed() const
- IsResearchAgreementTradingAllowedWithTeam(TeamTypes) const
- IsResourceObsolete(ResourceTypes)
- isSimultaneousTurns() const
- IsSmallAwardAchieved(SmallAwardTypes) const
- isTechShare(int) const
- isTechTrading() const
- isTerrainTrade(TerrainTypes) const
- IsTradeAgreementTradingAllowed() const
- isTurnActive() const
- isUnitClassMaxedOut(UnitClassTypes, int) const
- isVictoryAchieved(VictoryTypes) const
- isWaterWork() const
- makeHasMet(TeamTypes, bool)
- makePeace(TeamTypes, bool, bool, PlayerTypes)
- meet(TeamTypes, bool)
- PopIgnoreWarning(TeamTypes)
- processBuilding(BuildingTypes, int, bool)
- processTech(TechTypes, int)
- PushIgnoreWarning(TeamTypes)
- Read(FDataStream &)
- reset(TeamTypes, bool)
- resetVictoryProgress()
- SetAllowsOpenBordersToTeam(TeamTypes, bool)
- setAtWar(TeamTypes, bool, bool)
- SetBestPossibleRoute(RouteTypes)
- SetBrokenBorderPromise(bool)
- SetBrokenCityStatePromise(bool)
- SetBrokenExpansionPromise(bool)
- SetBrokenMilitaryPromise(bool)
- setCanLaunch(VictoryTypes, bool)
- SetCurrentEra(EraTypes)
- setDynamicTurnsSimultMode(bool)
- setForcePeace(TeamTypes, bool)
- setForceRevealedResource(ResourceTypes, bool)
- SetHasBrokenPeaceTreaty(bool)
- SetHasDefensivePact(TeamTypes, bool)
- SetHasEmbassyAtTeam(TeamTypes, bool)
- SetHasFoundPlayersTerritory(PlayerTypes, bool)
- SetHasResearchAgreement(TeamTypes, bool)
- setHasTech(TechTypes, bool, PlayerTypes, bool, bool)
- SetHasTechForWorldCongress(bool)
- SetHasTradeAgreement(TeamTypes, bool)
- SetHomeOfUnitedNations(bool)
- SetKilledByTeam(TeamTypes)
- SetLiberatedByTeam(TeamTypes)
- setMapCentering(bool)
- SetNumMinorCivsAttacked(int)
- SetNumTurnsAtWar(TeamTypes, int)
- SetNumTurnsLockedIntoWar(TeamTypes, int)
- setPermanentWarPeace(TeamTypes, bool)
- setProjectArtType(ProjectTypes, int, int)
- setProjectDefaultArtType(ProjectTypes, int)
- SetSmallAwardAchieved(SmallAwardTypes, bool)
- setTurnActive(bool, bool)
- SetTurnMadePeaceTreatyWithTeam(TeamTypes, int)
- SetTurnTeamMet(TeamTypes, int)
- setVictoryAchieved(VictoryTypes, bool)
- setVictoryCountdown(VictoryTypes, int)
- shareCounters(TeamTypes)
- shareItems(TeamTypes)
- testCircumnavigated()
- uninit()
- UpdateEmbarkGraphics()
- updateTechShare()
- updateTechShare(TechTypes)
- updateYield()
- Write(FDataStream &) const
- ~CvTeam() not a hook point