CvDiplomacyAI::IsDoFAccepted(PlayerTypes) const
- Defined in
- CvDiplomacyAI.cpp, line 21222
- Class
- CvDiplomacyAI
- Hook name
CivHooks::CvDiplomacyAI_IsDoFAccepted
Hooks
static bool BeforeCvDiplomacyAI_IsDoFAccepted(const CvDiplomacyAI* self, PlayerTypes ePlayer, bool& result);static void AfterCvDiplomacyAI_IsDoFAccepted(const CvDiplomacyAI* self, PlayerTypes ePlayer, bool& result);static bool ReplaceCvDiplomacyAI_IsDoFAccepted(bool (*original)(const CvDiplomacyAI*, PlayerTypes), const CvDiplomacyAI* self, PlayerTypes ePlayer);CivRegisterBefore<CivHooks::CvDiplomacyAI_IsDoFAccepted>(host, &BeforeCvDiplomacyAI_IsDoFAccepted);CivRegisterAfter<CivHooks::CvDiplomacyAI_IsDoFAccepted>(host, &AfterCvDiplomacyAI_IsDoFAccepted);CivRegisterReplace<CivHooks::CvDiplomacyAI_IsDoFAccepted>(host, &ReplaceCvDiplomacyAI_IsDoFAccepted);
Code
21222bool CvDiplomacyAI::IsDoFAccepted(PlayerTypes ePlayer) const21223{21224 CvAssertMsg(ePlayer >= 0, "DIPLOMACY_AI: Invalid Player Index. Please send Jon this with your last 5 autosaves and what changelist # you're playing.");21225 CvAssertMsg(ePlayer < MAX_MAJOR_CIVS, "DIPLOMACY_AI: Invalid Player Index. Please send Jon this with your last 5 autosaves and what changelist # you're playing.");21226 return m_pabDoFAccepted[ePlayer];21227}
Called by
36 functions in 8 files
- CvDeal::IsPossibleToTradeItem(PlayerTypes, PlayerTypes, TradeableItems, int, int, int, bool, bool, bool)
- CvDiplomacyAI::DoAggressiveMilitaryStatement(PlayerTypes, DiploStatementTypes &)
- CvDiplomacyAI::DoAngryBefriendedEnemy(PlayerTypes, DiploStatementTypes &, int &)
- CvDiplomacyAI::DoAngryDenouncedFriend(PlayerTypes, DiploStatementTypes &, int &)
- CvDiplomacyAI::DoCounters()
- CvDiplomacyAI::DoDenounceFriendStatement(PlayerTypes, DiploStatementTypes &)
- CvDiplomacyAI::DoDenouncePlayer(PlayerTypes)
- CvDiplomacyAI::DoDoFStatement(PlayerTypes, DiploStatementTypes &)
- CvDiplomacyAI::DoFYIBefriendedHumanEnemy(PlayerTypes, DiploStatementTypes &, int &)
- CvDiplomacyAI::DoFYIBefriendedHumanFriend(PlayerTypes, DiploStatementTypes &, int &)
- CvDiplomacyAI::DoFYIDenouncedHumanFriend(PlayerTypes, DiploStatementTypes &, int &)
- CvDiplomacyAI::DoHappyBefriendedFriend(PlayerTypes, DiploStatementTypes &, int &)
- CvDiplomacyAI::DoPlayerDeclaredWarOnSomeone(PlayerTypes, TeamTypes)
- CvDiplomacyAI::GetBestApproachTowardsMajorCiv(PlayerTypes, int &, bool, bool, WarFaceTypes &)
- CvDiplomacyAI::GetCoopWarScore(PlayerTypes, PlayerTypes, bool)
- CvDiplomacyAI::GetDOFAcceptedScore(PlayerTypes)
- CvDiplomacyAI::GetDenounceWeight(PlayerTypes, bool)
- CvDiplomacyAI::GetGreetHumanMessage(LeaderheadAnimationTypes &)
- CvDiplomacyAI::GetNumDoF()
- CvDiplomacyAI::GetRequestFriendToDenounce(PlayerTypes, bool &)
- CvDiplomacyAI::IsDenounceAcceptable(PlayerTypes, bool)
- CvDiplomacyAI::IsDoFRejected(PlayerTypes) const
- CvDiplomacyAI::IsMakeRequest(PlayerTypes, CvDeal *, bool &)
- CvDiplomacyAI::IsPlayerDenouncedFriend(PlayerTypes) const
- CvDiplomacyAI::IsPlayerDoFwithAnyEnemy(PlayerTypes) const
- CvDiplomacyAI::IsPlayerDoFwithAnyFriend(PlayerTypes) const
- CvDiplomacyAI::LogStatus()
- CvDiplomacyAI::SetDoFAccepted(PlayerTypes, bool)
- CvEspionageAI::AttemptCoups()
- CvEspionageAI::BuildOffenseCityList(EspionageCityList &)
- CvPlayer::GetGreatPeopleRateModFromFriendships() const
- CvPlayerAI::AI_conquerCity(CvCity *, PlayerTypes)
- CvPlot::IsActualAlliedUnit(PlayerTypes, bool) const
- CvLeagueAI::EvaluateAlignment(PlayerTypes)
- CvLeagueAI::ScoreVoteChoiceYesNo(CvProposal *, int, bool)
- CvLuaPlayer::lIsDoF(lua_State *)