Bazaar developer reference

CvDiplomacyAI::ChangeOtherPlayerNumProtectedMinorsAttacked(PlayerTypes, int)

Defined in
CvDiplomacyAI.cpp, line 9979
Class
CvDiplomacyAI
Hook name
CivHooks::CvDiplomacyAI_ChangeOtherPlayerNumProtectedMinorsAttacked

Hooks

static bool BeforeCvDiplomacyAI_ChangeOtherPlayerNumProtectedMinorsAttacked(CvDiplomacyAI* self, PlayerTypes ePlayer, int iChange);static void AfterCvDiplomacyAI_ChangeOtherPlayerNumProtectedMinorsAttacked(CvDiplomacyAI* self, PlayerTypes ePlayer, int iChange);static void ReplaceCvDiplomacyAI_ChangeOtherPlayerNumProtectedMinorsAttacked(void (*original)(CvDiplomacyAI*, PlayerTypes, int), CvDiplomacyAI* self, PlayerTypes ePlayer, int iChange);CivRegisterBefore<CivHooks::CvDiplomacyAI_ChangeOtherPlayerNumProtectedMinorsAttacked>(host, &BeforeCvDiplomacyAI_ChangeOtherPlayerNumProtectedMinorsAttacked);CivRegisterAfter<CivHooks::CvDiplomacyAI_ChangeOtherPlayerNumProtectedMinorsAttacked>(host, &AfterCvDiplomacyAI_ChangeOtherPlayerNumProtectedMinorsAttacked);CivRegisterReplace<CivHooks::CvDiplomacyAI_ChangeOtherPlayerNumProtectedMinorsAttacked>(host, &ReplaceCvDiplomacyAI_ChangeOtherPlayerNumProtectedMinorsAttacked);

Code

9978/// Changes how many ProtectedMinors have we seen this Player attack9979void CvDiplomacyAI::ChangeOtherPlayerNumProtectedMinorsAttacked(PlayerTypes ePlayer, int iChange)9980{9981	SetOtherPlayerNumProtectedMinorsAttacked(ePlayer, GetOtherPlayerNumProtectedMinorsAttacked(ePlayer) + iChange);9982}

Calls

Called by