Bazaar developer reference

CvDiplomacyAI::ChangeOtherPlayerNumProtectedMinorsKilled(PlayerTypes, int)

Defined in
CvDiplomacyAI.cpp, line 10046
Class
CvDiplomacyAI
Hook name
CivHooks::CvDiplomacyAI_ChangeOtherPlayerNumProtectedMinorsKilled

Hooks

static bool BeforeCvDiplomacyAI_ChangeOtherPlayerNumProtectedMinorsKilled(CvDiplomacyAI* self, PlayerTypes ePlayer, int iChange);static void AfterCvDiplomacyAI_ChangeOtherPlayerNumProtectedMinorsKilled(CvDiplomacyAI* self, PlayerTypes ePlayer, int iChange);static void ReplaceCvDiplomacyAI_ChangeOtherPlayerNumProtectedMinorsKilled(void (*original)(CvDiplomacyAI*, PlayerTypes, int), CvDiplomacyAI* self, PlayerTypes ePlayer, int iChange);CivRegisterBefore<CivHooks::CvDiplomacyAI_ChangeOtherPlayerNumProtectedMinorsKilled>(host, &BeforeCvDiplomacyAI_ChangeOtherPlayerNumProtectedMinorsKilled);CivRegisterAfter<CivHooks::CvDiplomacyAI_ChangeOtherPlayerNumProtectedMinorsKilled>(host, &AfterCvDiplomacyAI_ChangeOtherPlayerNumProtectedMinorsKilled);CivRegisterReplace<CivHooks::CvDiplomacyAI_ChangeOtherPlayerNumProtectedMinorsKilled>(host, &ReplaceCvDiplomacyAI_ChangeOtherPlayerNumProtectedMinorsKilled);

Code

10045/// Changes how many ProtectedMinors have we seen this Player attack10046void CvDiplomacyAI::ChangeOtherPlayerNumProtectedMinorsKilled(PlayerTypes ePlayer, int iChange)10047{10048	SetOtherPlayerNumProtectedMinorsKilled(ePlayer, GetOtherPlayerNumProtectedMinorsKilled(ePlayer) + iChange);10049}

Calls

Called by