Bazaar developer reference

CvDiplomacyAI::GetOtherPlayerNumProtectedMinorsBullied(PlayerTypes) const

Defined in
CvDiplomacyAI.cpp, line 10098
Class
CvDiplomacyAI
Hook name
CivHooks::CvDiplomacyAI_GetOtherPlayerNumProtectedMinorsBullied

Hooks

static bool BeforeCvDiplomacyAI_GetOtherPlayerNumProtectedMinorsBullied(const CvDiplomacyAI* self, PlayerTypes ePlayer, int& result);static void AfterCvDiplomacyAI_GetOtherPlayerNumProtectedMinorsBullied(const CvDiplomacyAI* self, PlayerTypes ePlayer, int& result);static int ReplaceCvDiplomacyAI_GetOtherPlayerNumProtectedMinorsBullied(int (*original)(const CvDiplomacyAI*, PlayerTypes), const CvDiplomacyAI* self, PlayerTypes ePlayer);CivRegisterBefore<CivHooks::CvDiplomacyAI_GetOtherPlayerNumProtectedMinorsBullied>(host, &BeforeCvDiplomacyAI_GetOtherPlayerNumProtectedMinorsBullied);CivRegisterAfter<CivHooks::CvDiplomacyAI_GetOtherPlayerNumProtectedMinorsBullied>(host, &AfterCvDiplomacyAI_GetOtherPlayerNumProtectedMinorsBullied);CivRegisterReplace<CivHooks::CvDiplomacyAI_GetOtherPlayerNumProtectedMinorsBullied>(host, &ReplaceCvDiplomacyAI_GetOtherPlayerNumProtectedMinorsBullied);

Code

10097/// How many ProtectedMinors have we seen this Player bully10098int CvDiplomacyAI::GetOtherPlayerNumProtectedMinorsBullied(PlayerTypes ePlayer) const10099{10100	CvAssertMsg(ePlayer >= 0, "DIPLOMACY_AI: Invalid Player Index.  Please send Anton your save file and version.");10101	CvAssertMsg(ePlayer < MAX_MAJOR_CIVS, "DIPLOMACY_AI: Invalid Player Index.  Please send Anton your save file and version.");10102	return m_paiOtherPlayerNumProtectedMinorsBullied[ePlayer];10103}

Called by