CvTeam::isAtWar(TeamTypes) const
- Defined in
- CvTeam.cpp, line 3871
- Class
- CvTeam
- Hook name
CivHooks::CvTeam_isAtWar
Hooks
static bool BeforeCvTeam_isAtWar(const CvTeam* self, TeamTypes eIndex, bool& result);static void AfterCvTeam_isAtWar(const CvTeam* self, TeamTypes eIndex, bool& result);static bool ReplaceCvTeam_isAtWar(bool (*original)(const CvTeam*, TeamTypes), const CvTeam* self, TeamTypes eIndex);CivRegisterBefore<CivHooks::CvTeam_isAtWar>(host, &BeforeCvTeam_isAtWar);CivRegisterAfter<CivHooks::CvTeam_isAtWar>(host, &AfterCvTeam_isAtWar);CivRegisterReplace<CivHooks::CvTeam_isAtWar>(host, &ReplaceCvTeam_isAtWar);
Code
3871bool CvTeam::isAtWar(TeamTypes eIndex) const3872{3873 CvAssertMsg(eIndex >= 0, "eIndex is expected to be non-negative (invalid Index)");3874 CvAssertMsg(eIndex < MAX_TEAMS, "eIndex is expected to be within maximum bounds (invalid Index)");3875 return m_abAtWar[eIndex];3876}
Calls
Firaxis::Array::operator[]
Called by
121 functions in 25 files
- CvAdvisorCounsel::BuildCounselList(PlayerTypes)
- CvAIOperationNukeAttack::FindBestTarget()
- PathDestValid(int, 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 *)
- CvCityCulture::GetTourismMultiplier(PlayerTypes, bool, bool, bool, bool, bool) const
- CvCityCulture::GetTourismTooltip()
- CvPlayerCulture::GetCivLowestInfluence(bool) const
- CvPlayerCulture::GetTourismModifierWith(PlayerTypes) const
- CvPlayerCulture::GetTourismModifierWithTooltip(PlayerTypes) const
- CvDangerPlots::IsDangerByRelationshipZero(PlayerTypes, CvPlot *)
- CvDangerPlots::ModifyDangerByRelationship(PlayerTypes, CvPlot *, int)
- CvDangerPlots::ShouldIgnorePlayer(PlayerTypes)
- CvDealAI::DoAddPlayersAlliesToTreaty(PlayerTypes, CvDeal *)
- CvDealAI::DoTradeScreenOpened()
- CvDealAI::GetCityValue(int, int, bool, PlayerTypes, bool)
- CvDealAI::GetThirdPartyPeaceValue(bool, PlayerTypes, TeamTypes)
- CvDeal::IsPossibleToTradeItem(PlayerTypes, PlayerTypes, TradeableItems, int, int, int, bool, bool, bool)
- CvGameDeals::DoEndTradedItem(CvTradedItem *, PlayerTypes, bool)
- CvDiplomacyAI::DeclareWar(PlayerTypes)
- CvDiplomacyAI::DoAggressiveMilitaryStatement(PlayerTypes, DiploStatementTypes &)
- CvDiplomacyAI::DoCoopWarTimeStatement(PlayerTypes, DiploStatementTypes &, int &)
- CvDiplomacyAI::DoCounters()
- CvDiplomacyAI::DoMakeWarOnPlayer(PlayerTypes)
- CvDiplomacyAI::DoSendStatementToPlayer(PlayerTypes, DiploStatementTypes, int, CvDeal *)
- CvDiplomacyAI::DoStartDemandProcess(PlayerTypes)
- CvDiplomacyAI::DoUpdateMilitaryThreats()
- CvDiplomacyAI::DoUpdateOnePlayerExpansionAggressivePosture(PlayerTypes)
- CvDiplomacyAI::DoUpdateOnePlayerMilitaryAggressivePosture(PlayerTypes)
- CvDiplomacyAI::DoUpdateOnePlayerTargetValue(PlayerTypes)
- CvDiplomacyAI::DoUpdateOtherPlayerWarDamageLevel()
- CvDiplomacyAI::DoUpdateWarGoals()
- CvDiplomacyAI::DoWarDamageDecay()
- CvDiplomacyAI::GetBestApproachTowardsMajorCiv(PlayerTypes, int &, bool, bool, WarFaceTypes &)
- CvDiplomacyAI::GetBestApproachTowardsMinorCiv(PlayerTypes, int &, bool, bool)
- CvDiplomacyAI::GetNumOurEnemiesPlayerAtWarWith(PlayerTypes)
- CvDiplomacyAI::GetRequestFriendToDenounce(PlayerTypes, bool &)
- CvDiplomacyAI::IsAtWar(PlayerTypes)
- CvDiplomacyAI::IsDenounceAcceptable(PlayerTypes, bool)
- CvDiplomacyAI::IsDoFAcceptable(PlayerTypes)
- CvDiplomacyAIHelpers::ApplyWarmongerPenalties(PlayerTypes, PlayerTypes, bool)
- CvDllTeam::IsAtWar(TeamTypes) const
- CvEspionageAI::BuildMinorCityList(EspionageCityList &)
- CvEspionageAI::BuildOffenseCityList(EspionageCityList &)
- CvEspionageAI::FindTargetSpyNumbers(int *, int *, int *, int *)
- CvPlayerEspionage::CanMoveSpyTo(CvCity *, uint, bool)
- CvPlayerEspionage::UncoverIntrigue(uint)
- atWar(TeamTypes, TeamTypes)
- CvMilitaryAI::UpdateOperations()
- CvMinorCivAI::CanMajorBuyout(PlayerTypes)
- CvMinorCivAI::CanMajorProtect(PlayerTypes)
- CvMinorCivAI::DoNowAtWarWithTeam(TeamTypes)
- CvMinorCivAI::DoTeamDeclaredWarOnMe(TeamTypes)
- CvMinorCivAI::DoTestEndSkirmishes(PlayerTypes)
- CvMinorCivAI::DoTestEndWarsVSMinors(PlayerTypes, PlayerTypes)
- CvMinorCivAI::IsAtWarWithPlayersTeam(PlayerTypes)
- CvMinorCivAI::IsPeaceBlocked(TeamTypes) const
- CvMinorCivAI::IsProxyWarActiveForMajor(PlayerTypes, PlayerTypes)
- CvMinorCivAI::IsValidQuestForPlayer(PlayerTypes, MinorCivQuestTypes)
- CvMinorCivAI::SetAlly(PlayerTypes)
- CvNotifications::Activate(Notification &)
- CvPlayer::IsAtWar() const
- CvPlayer::IsAtWarAnyMajor() const
- CvPlayer::IsAtWarAnyMinor() const
- CvPlayer::IsAtWarWith(PlayerTypes) const
- CvPlayerAI::AI_conquerCity(CvCity *, PlayerTypes)
- CvPlayerAI::FindBestMerchantTargetPlot(CvUnit *, bool)
- CvPlot::IsActualEnemyUnit(PlayerTypes, bool, bool) const
- CvPlot::getNumFriendlyUnitsOfType(const CvUnit *, bool) const
- CvPlot::isVisibleToEnemyTeam(TeamTypes) const
- CvTacticalAnalysisMap::AddToDominanceZones(int, CvTacticalAnalysisCell *)
- CvTacticalAnalysisMap::BuildEnemyUnitList()
- CvTacticalAnalysisMap::CalculateMilitaryStrengths()
- CvTacticalAnalysisMap::PopulateCell(int, CvPlot *)
- CvTeam::DoDeclareWar(PlayerTypes, bool, TeamTypes, bool, bool)
- CvTeam::DoMakePeace(PlayerTypes, bool, TeamTypes, bool, bool)
- CvTeam::GetTeamVotingForInDiplo() const
- CvTeam::HasCommonEnemy(TeamTypes) const
- CvTeam::IsAllowsOpenBordersToTeam(TeamTypes) const
- CvTeam::addTeam(TeamTypes)
- CvTeam::canDeclareWar(TeamTypes, PlayerTypes) const
- CvTeam::doTurn()
- CvTeam::getAtWarCount(bool) const
- CvTeam::getEnemyPower() const
- CvTeam::isAggressor(TeamTypes) const
- CvTeam::isAtWarWithHumans() const
- CvTeam::isPacifier(TeamTypes) const
- CvTeam::makeHasMet(TeamTypes, bool)
- CvGameTrade::CanCreateTradeRoute(CvCity *, CvCity *, DomainTypes, TradeConnectionType, bool, bool)
- CvPlayerTrade::GetPlotMouseoverToolTips(CvPlot *)
- CvPlayerTrade::GetTradePlotsAtPlot(const CvPlot *, bool, bool, bool)
- CvPlayerTrade::GetTradeUnitsAtPlot(const CvPlot *, bool, 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::GetNumEnemyUnitsAdjacent(const CvUnit *) const
- CvUnit::GetNumSpecificEnemyUnitsAdjacent(const CvUnit *, const CvUnit *) const
- CvUnit::GetReverseGreatGeneralModifier() const
- CvUnit::IsEnemyCityAdjacent() const
- CvUnit::IsEnemyCityAdjacent(const CvCity *) const
- CvUnit::IsEnemyInMovementRange(bool, bool)
- CvUnit::IsNearEnemyCitadel(int &)
- CvUnit::PerformCultureBomb(int)
- CvUnit::UnitAttack(int, int, int, int)
- CvUnit::canBuyCityState(const CvPlot *, bool) const
- CvUnit::canMoveInto(const CvPlot &, byte) const
- CvUnit::canNukeAt(const CvPlot *, int, int) const
- CvUnit::canPlunderTradeRoute(const CvPlot *, bool) const
- CvUnit::canRangeStrikeAt(int, int, bool, bool) const
- CvUnit::canSellExoticGoods(const CvPlot *, bool) const
- CvUnit::canTrade(const CvPlot *, bool) const
- CvUnit::createCaptureUnit(const CvUnitCaptureDefinition &)
- CvUnit::setXY(int, int, bool, bool, bool, bool, bool)
- CvUnitMovement::IsSlowedByZOC(const CvUnit *, const CvPlot *, const CvPlot *)
- CvLeagueAI::EvaluateAlignment(PlayerTypes)
- CvLeagueAI::ScoreVoteChoiceYesNo(CvProposal *, int, bool)
- CvLuaPlayer::lGetOpinionTable(lua_State *)
- CvLuaPlayer::lGetOthersGreatWorks(lua_State *)
- CvLuaTeam::lIsAtWar(lua_State *)