Bazaar developer reference

CvDiplomacyAI::GetOtherPlayerNumMinorsConquered(PlayerTypes) const

Defined in
CvDiplomacyAI.cpp, line 10190
Class
CvDiplomacyAI
Hook name
CivHooks::CvDiplomacyAI_GetOtherPlayerNumMinorsConquered

Hooks

static bool BeforeCvDiplomacyAI_GetOtherPlayerNumMinorsConquered(const CvDiplomacyAI* self, PlayerTypes ePlayer, int& result);static void AfterCvDiplomacyAI_GetOtherPlayerNumMinorsConquered(const CvDiplomacyAI* self, PlayerTypes ePlayer, int& result);static int ReplaceCvDiplomacyAI_GetOtherPlayerNumMinorsConquered(int (*original)(const CvDiplomacyAI*, PlayerTypes), const CvDiplomacyAI* self, PlayerTypes ePlayer);CivRegisterBefore<CivHooks::CvDiplomacyAI_GetOtherPlayerNumMinorsConquered>(host, &BeforeCvDiplomacyAI_GetOtherPlayerNumMinorsConquered);CivRegisterAfter<CivHooks::CvDiplomacyAI_GetOtherPlayerNumMinorsConquered>(host, &AfterCvDiplomacyAI_GetOtherPlayerNumMinorsConquered);CivRegisterReplace<CivHooks::CvDiplomacyAI_GetOtherPlayerNumMinorsConquered>(host, &ReplaceCvDiplomacyAI_GetOtherPlayerNumMinorsConquered);

Code

10189/// How many Minors have we seen this Player conquer10190int CvDiplomacyAI::GetOtherPlayerNumMinorsConquered(PlayerTypes ePlayer) const10191{10192	CvAssertMsg(ePlayer >= 0, "DIPLOMACY_AI: Invalid Player Index.  Please send Jon this with your last 5 autosaves and what changelist # you're playing.");10193	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.");10194	return m_paiOtherPlayerNumMinorsConquered[ePlayer];10195}

Called by