CvDiplomacyAI::GetLandDisputeLevel(PlayerTypes) const
- Defined in
- CvDiplomacyAI.cpp, line 7581
- Class
- CvDiplomacyAI
- Hook name
CivHooks::CvDiplomacyAI_GetLandDisputeLevel
Hooks
static bool BeforeCvDiplomacyAI_GetLandDisputeLevel(const CvDiplomacyAI* self, PlayerTypes ePlayer, DisputeLevelTypes& result);static void AfterCvDiplomacyAI_GetLandDisputeLevel(const CvDiplomacyAI* self, PlayerTypes ePlayer, DisputeLevelTypes& result);static DisputeLevelTypes ReplaceCvDiplomacyAI_GetLandDisputeLevel(DisputeLevelTypes (*original)(const CvDiplomacyAI*, PlayerTypes), const CvDiplomacyAI* self, PlayerTypes ePlayer);CivRegisterBefore<CivHooks::CvDiplomacyAI_GetLandDisputeLevel>(host, &BeforeCvDiplomacyAI_GetLandDisputeLevel);CivRegisterAfter<CivHooks::CvDiplomacyAI_GetLandDisputeLevel>(host, &AfterCvDiplomacyAI_GetLandDisputeLevel);CivRegisterReplace<CivHooks::CvDiplomacyAI_GetLandDisputeLevel>(host, &ReplaceCvDiplomacyAI_GetLandDisputeLevel);
Code
7580/// What is our level of Dispute with a player over Land?7581DisputeLevelTypes CvDiplomacyAI::GetLandDisputeLevel(PlayerTypes ePlayer) const7582{7583 CvAssertMsg(ePlayer >= 0, "DIPLOMACY_AI: Invalid Player Index. Please send Jon this with your last 5 autosaves and what changelist # you're playing.");7584 CvAssertMsg(ePlayer < MAX_CIV_PLAYERS, "DIPLOMACY_AI: Invalid Player Index. Please send Jon this with your last 5 autosaves and what changelist # you're playing.");7585 return (DisputeLevelTypes) m_paePlayerLandDisputeLevel[ePlayer];7586}
Called by
- CvCity::GetIndividualPlotScore(const CvPlot *) const
- CvDiplomacyAI::DoExpansionWarningStatement(PlayerTypes, DiploStatementTypes &)
- CvDiplomacyAI::DoPlotBuyingWarningStatement(PlayerTypes, DiploStatementTypes &)
- CvDiplomacyAI::DoUpdateLandDisputeLevels()
- CvDiplomacyAI::GetEndDoFMessage(PlayerTypes)
- CvDiplomacyAI::GetGreetHumanMessage(LeaderheadAnimationTypes &)
- CvDiplomacyAI::GetLandDisputeLevelScore(PlayerTypes)
- CvDiplomacyAI::GetTotalLandDisputeLevel()
- CvDiplomacyAI::GetWarMessage(PlayerTypes)
- CvDiplomacyAI::LogLandDispute(CvString &, PlayerTypes)
- CvPlayerAI::FindBestArtistTargetPlot(CvUnit *, int &)
- CvLuaPlayer::lGetLandDisputeLevel(lua_State *)