CvMinorCivAI::IsFriends(PlayerTypes)
- Defined in
- CvMinorCivAI.cpp, line 6661
- Class
- CvMinorCivAI
- Hook name
CivHooks::CvMinorCivAI_IsFriends
Hooks
static bool BeforeCvMinorCivAI_IsFriends(CvMinorCivAI* self, PlayerTypes ePlayer, bool& result);static void AfterCvMinorCivAI_IsFriends(CvMinorCivAI* self, PlayerTypes ePlayer, bool& result);static bool ReplaceCvMinorCivAI_IsFriends(bool (*original)(CvMinorCivAI*, PlayerTypes), CvMinorCivAI* self, PlayerTypes ePlayer);CivRegisterBefore<CivHooks::CvMinorCivAI_IsFriends>(host, &BeforeCvMinorCivAI_IsFriends);CivRegisterAfter<CivHooks::CvMinorCivAI_IsFriends>(host, &AfterCvMinorCivAI_IsFriends);CivRegisterReplace<CivHooks::CvMinorCivAI_IsFriends>(host, &ReplaceCvMinorCivAI_IsFriends);
Code
6660/// Is ePlayer Friends with this minor?6661bool CvMinorCivAI::IsFriends(PlayerTypes ePlayer)6662{6663 return IsFriendshipAboveFriendsThreshold(GetEffectiveFriendshipWithMajor(ePlayer));6664}
Calls
Called by
- CvAdvisorCounsel::BuildCounselList(PlayerTypes)
- CvDangerPlots::ShouldIgnorePlayer(PlayerTypes)
- CvDiplomacyAI::DoContactMinorCivs()
- CvDiplomacyAI::DoMinorCivCompetitionStatement(PlayerTypes, DiploStatementTypes &, int &, bool)
- CvDiplomacyAI::GetBestApproachTowardsMinorCiv(PlayerTypes, int &, bool, bool)
- CvPlayerEspionage::AttemptCoup(uint)
- CvGrandStrategyAI::GetGuessOtherPlayerUnitedNationsPriority(PlayerTypes)
- CvMinorCivAI::DoElection()
- CvMinorCivAI::DoFriendship()
- CvMinorCivAI::DoMajorCivEraChange(PlayerTypes, EraTypes)
- CvMinorCivAI::DoNowAtWarWithTeam(TeamTypes)
- CvMinorCivAI::GetCurrentCapitalFoodBonus(PlayerTypes)
- CvMinorCivAI::GetCurrentCultureFlatBonus(PlayerTypes)
- CvMinorCivAI::GetCurrentCulturePerBuildingBonus(PlayerTypes)
- CvMinorCivAI::GetCurrentFaithFlatBonus(PlayerTypes)
- CvMinorCivAI::GetCurrentHappinessFlatBonus(PlayerTypes)
- CvMinorCivAI::GetCurrentHappinessPerLuxuryBonus(PlayerTypes)
- CvMinorCivAI::GetCurrentOtherCityFoodBonus(PlayerTypes)
- CvMinorCivAI::GetCurrentSpawnEstimate(PlayerTypes)
- CvMinorCivAI::GetFriendshipLevelWithMajor(PlayerTypes)
- CvMinorCivAI::GetFriendshipNeededForNextLevel(PlayerTypes)
- CvMinorCivAI::GetSpawnBaseTurns(PlayerTypes)
- CvMinorCivAI::IsPlayerHasOpenBorders(PlayerTypes)
- CvMinorCivAI::IsUnitSpawningAllowed(PlayerTypes)
- CvMinorCivQuest::DoFinishQuest()
- CvGameReligions::IsCityStateFriendOfReligionFounder(ReligionTypes, PlayerTypes)
- CvLuaPlayer::lIsFriends(lua_State *)