CvDiplomacyAI::IsPlayerIgnoredBullyCityStatePromise(PlayerTypes)
- Defined in
- CvDiplomacyAI.cpp, line 22712
- Class
- CvDiplomacyAI
- Hook name
CivHooks::CvDiplomacyAI_IsPlayerIgnoredBullyCityStatePromise
Hooks
static bool BeforeCvDiplomacyAI_IsPlayerIgnoredBullyCityStatePromise(CvDiplomacyAI* self, PlayerTypes ePlayer, bool& result);static void AfterCvDiplomacyAI_IsPlayerIgnoredBullyCityStatePromise(CvDiplomacyAI* self, PlayerTypes ePlayer, bool& result);static bool ReplaceCvDiplomacyAI_IsPlayerIgnoredBullyCityStatePromise(bool (*original)(CvDiplomacyAI*, PlayerTypes), CvDiplomacyAI* self, PlayerTypes ePlayer);CivRegisterBefore<CivHooks::CvDiplomacyAI_IsPlayerIgnoredBullyCityStatePromise>(host, &BeforeCvDiplomacyAI_IsPlayerIgnoredBullyCityStatePromise);CivRegisterAfter<CivHooks::CvDiplomacyAI_IsPlayerIgnoredBullyCityStatePromise>(host, &AfterCvDiplomacyAI_IsPlayerIgnoredBullyCityStatePromise);CivRegisterReplace<CivHooks::CvDiplomacyAI_IsPlayerIgnoredBullyCityStatePromise>(host, &ReplaceCvDiplomacyAI_IsPlayerIgnoredBullyCityStatePromise);
Code
22711// Promise to not bully a City-State22712bool CvDiplomacyAI::IsPlayerIgnoredBullyCityStatePromise(PlayerTypes ePlayer)22713{22714 CvAssertMsg(ePlayer >= 0, "DIPLOMACY_AI: Invalid Player Index. Please send Anton your save file and version.");22715 CvAssertMsg(ePlayer < MAX_MAJOR_CIVS, "DIPLOMACY_AI: Invalid Player Index. Please send Anton your save file and version.");22716 return m_pabPlayerIgnoredBullyCityStatePromise[ePlayer];22717}
Called by
- CvDiplomacyAI::DoBulliedCityStateStatement(PlayerTypes, DiploStatementTypes &, int &)
- CvDiplomacyAI::GetBestApproachTowardsMajorCiv(PlayerTypes, int &, bool, bool, WarFaceTypes &)
- CvDiplomacyAI::GetIgnoredBullyCityStatePromiseScore(PlayerTypes)
- CvLuaPlayer::lIsPlayerIgnoredBullyCityStatePromise(lua_State *)