CvMinorCivAI::GetAlly() const
- Defined in
- CvMinorCivAI.cpp, line 6508
- Class
- CvMinorCivAI
- Hook name
CivHooks::CvMinorCivAI_GetAlly
Hooks
static bool BeforeCvMinorCivAI_GetAlly(const CvMinorCivAI* self, PlayerTypes& result);static void AfterCvMinorCivAI_GetAlly(const CvMinorCivAI* self, PlayerTypes& result);static PlayerTypes ReplaceCvMinorCivAI_GetAlly(PlayerTypes (*original)(const CvMinorCivAI*), const CvMinorCivAI* self);CivRegisterBefore<CivHooks::CvMinorCivAI_GetAlly>(host, &BeforeCvMinorCivAI_GetAlly);CivRegisterAfter<CivHooks::CvMinorCivAI_GetAlly>(host, &AfterCvMinorCivAI_GetAlly);CivRegisterReplace<CivHooks::CvMinorCivAI_GetAlly>(host, &ReplaceCvMinorCivAI_GetAlly);
Code
6507/// Who has the best relations with us right now?6508PlayerTypes CvMinorCivAI::GetAlly() const6509{6510 return m_eAlly;6511}
Called by
42 functions in 15 files
- CvCityStrategyAI::ChooseProduction(bool, BuildingTypes, UnitTypes)
- CvPlayerCulture::GetInfluenceCityStateSpyRankBonus(PlayerTypes) const
- CvPlayerCulture::GetInfluenceSurveillanceTime(PlayerTypes) const
- CvDealAI::DoAddPlayersAlliesToTreaty(PlayerTypes, CvDeal *)
- CvDealAI::GetThirdPartyPeaceValue(bool, PlayerTypes, TeamTypes)
- CvDeal::IsPossibleToTradeItem(PlayerTypes, PlayerTypes, TradeableItems, int, int, int, bool, bool, bool)
- CvDiplomacyAI::DoUpdateOnePlayerTargetValue(PlayerTypes)
- CvDiplomacyAI::GetBestApproachTowardsMinorCiv(PlayerTypes, int &, bool, bool)
- CvEspionageAI::AttemptCoups()
- CvEspionageAI::BuildMinorCityList(EspionageCityList &)
- CvEspionageAI::GetCityStatePlan(PlayerTypes *)
- CvPlayerEspionage::AttemptCoup(uint)
- CvPlayerEspionage::CanStageCoup(uint)
- CvPlayerEspionage::GetCoupChanceOfSuccess(uint)
- CvGrandStrategyAI::GetUnitedNationsPriority()
- CvMinorCivAI::CalculateBullyMetric(PlayerTypes, bool, CvString *)
- CvMinorCivAI::DoChangeAliveStatus(bool)
- CvMinorCivAI::DoFriendshipChangeEffects(PlayerTypes, int, int, bool, bool)
- CvMinorCivAI::DoSetBonus(PlayerTypes, bool, bool, bool, bool, bool, PlayerTypes)
- CvMinorCivAI::DoSpawnUnit(PlayerTypes, bool, bool)
- CvMinorCivAI::DoTeamDeclaredWarOnMe(TeamTypes)
- CvMinorCivAI::DoTestEndSkirmishes(PlayerTypes)
- CvMinorCivAI::DoTestEndWarsVSMinors(PlayerTypes, PlayerTypes)
- CvMinorCivAI::SetAlly(PlayerTypes)
- CvMinorCivQuest::DoFinishQuest()
- CvPlayer::DoAdoptedGreatPersonCityStatePolicy()
- CvPlayer::DoGreatPeopleSpawnTurn()
- CvPlayer::DoSeedGreatPeopleSpawnCounter()
- CvPlayer::changeNumResourceTotal(ResourceTypes, int, bool)
- CvPlot::IsActualAlliedUnit(PlayerTypes, bool) const
- CvPlot::setOwner(PlayerTypes, int, bool, bool)
- CvPlot::updateSight(bool)
- CvCityReligions::IsDefendedAgainstSpread(ReligionTypes)
- CvTeam::DoMakePeace(PlayerTypes, bool, TeamTypes, bool, bool)
- CvTeam::GetTeamVotingForInDiplo() const
- CvUnit::CanUpgradeInTerritory(bool) const
- CvUnit::DoUpgradeTo(UnitTypes, bool)
- CvUnit::canEnterTerritory(TeamTypes, bool, bool, bool) const
- CvWonderProductionAI::ChooseWonder(bool, bool, int &)
- CvWonderProductionAI::ChooseWonderForGreatEngineer(bool, int &, CvCity *&)
- CvLuaPlayer::lGetAlly(lua_State *)
- CvLuaPlayer::lGetMinorCivFavoriteMajor(lua_State *)