Bazaar developer reference

CvDiplomacyAI::GetOtherPlayerNumProtectedMinorsKilled(PlayerTypes) const

Defined in
CvDiplomacyAI.cpp, line 10030
Class
CvDiplomacyAI
Hook name
CivHooks::CvDiplomacyAI_GetOtherPlayerNumProtectedMinorsKilled

Hooks

static bool BeforeCvDiplomacyAI_GetOtherPlayerNumProtectedMinorsKilled(const CvDiplomacyAI* self, PlayerTypes ePlayer, int& result);static void AfterCvDiplomacyAI_GetOtherPlayerNumProtectedMinorsKilled(const CvDiplomacyAI* self, PlayerTypes ePlayer, int& result);static int ReplaceCvDiplomacyAI_GetOtherPlayerNumProtectedMinorsKilled(int (*original)(const CvDiplomacyAI*, PlayerTypes), const CvDiplomacyAI* self, PlayerTypes ePlayer);CivRegisterBefore<CivHooks::CvDiplomacyAI_GetOtherPlayerNumProtectedMinorsKilled>(host, &BeforeCvDiplomacyAI_GetOtherPlayerNumProtectedMinorsKilled);CivRegisterAfter<CivHooks::CvDiplomacyAI_GetOtherPlayerNumProtectedMinorsKilled>(host, &AfterCvDiplomacyAI_GetOtherPlayerNumProtectedMinorsKilled);CivRegisterReplace<CivHooks::CvDiplomacyAI_GetOtherPlayerNumProtectedMinorsKilled>(host, &ReplaceCvDiplomacyAI_GetOtherPlayerNumProtectedMinorsKilled);

Code

10029/// How many ProtectedMinors have we seen this Player attack10030int CvDiplomacyAI::GetOtherPlayerNumProtectedMinorsKilled(PlayerTypes ePlayer) const10031{10032	CvAssertMsg(ePlayer >= 0, "DIPLOMACY_AI: Invalid Player Index.  Please send Jon this with your last 5 autosaves and what changelist # you're playing.");10033	CvAssertMsg(ePlayer < MAX_MAJOR_CIVS, "DIPLOMACY_AI: Invalid Player Index.  Please send Jon this with your last 5 autosaves and what changelist # you're playing.");10034	return m_paiOtherPlayerNumProtectedMinorsKilled[ePlayer];10035}

Called by