Bazaar developer reference

CvDiplomacyAI::ChangeOtherPlayerNumProtectedMinorsBullied(PlayerTypes, int)

Defined in
CvDiplomacyAI.cpp, line 10115
Class
CvDiplomacyAI
Hook name
CivHooks::CvDiplomacyAI_ChangeOtherPlayerNumProtectedMinorsBullied

Hooks

static bool BeforeCvDiplomacyAI_ChangeOtherPlayerNumProtectedMinorsBullied(CvDiplomacyAI* self, PlayerTypes ePlayer, int iChange);static void AfterCvDiplomacyAI_ChangeOtherPlayerNumProtectedMinorsBullied(CvDiplomacyAI* self, PlayerTypes ePlayer, int iChange);static void ReplaceCvDiplomacyAI_ChangeOtherPlayerNumProtectedMinorsBullied(void (*original)(CvDiplomacyAI*, PlayerTypes, int), CvDiplomacyAI* self, PlayerTypes ePlayer, int iChange);CivRegisterBefore<CivHooks::CvDiplomacyAI_ChangeOtherPlayerNumProtectedMinorsBullied>(host, &BeforeCvDiplomacyAI_ChangeOtherPlayerNumProtectedMinorsBullied);CivRegisterAfter<CivHooks::CvDiplomacyAI_ChangeOtherPlayerNumProtectedMinorsBullied>(host, &AfterCvDiplomacyAI_ChangeOtherPlayerNumProtectedMinorsBullied);CivRegisterReplace<CivHooks::CvDiplomacyAI_ChangeOtherPlayerNumProtectedMinorsBullied>(host, &ReplaceCvDiplomacyAI_ChangeOtherPlayerNumProtectedMinorsBullied);

Code

10114/// Changes how many ProtectedMinors have we seen this Player bully10115void CvDiplomacyAI::ChangeOtherPlayerNumProtectedMinorsBullied(PlayerTypes ePlayer, int iChange)10116{10117	SetOtherPlayerNumProtectedMinorsBullied(ePlayer, GetOtherPlayerNumProtectedMinorsBullied(ePlayer) + iChange);10118}

Calls

Called by