Bazaar developer reference

CvDiplomacyAI::GetNumLandmarksBuiltForMe(PlayerTypes) const

Defined in
CvDiplomacyAI.cpp, line 23078
Class
CvDiplomacyAI
Hook name
CivHooks::CvDiplomacyAI_GetNumLandmarksBuiltForMe

Hooks

static bool BeforeCvDiplomacyAI_GetNumLandmarksBuiltForMe(const CvDiplomacyAI* self, PlayerTypes ePlayer, int& result);static void AfterCvDiplomacyAI_GetNumLandmarksBuiltForMe(const CvDiplomacyAI* self, PlayerTypes ePlayer, int& result);static int ReplaceCvDiplomacyAI_GetNumLandmarksBuiltForMe(int (*original)(const CvDiplomacyAI*, PlayerTypes), const CvDiplomacyAI* self, PlayerTypes ePlayer);CivRegisterBefore<CivHooks::CvDiplomacyAI_GetNumLandmarksBuiltForMe>(host, &BeforeCvDiplomacyAI_GetNumLandmarksBuiltForMe);CivRegisterAfter<CivHooks::CvDiplomacyAI_GetNumLandmarksBuiltForMe>(host, &AfterCvDiplomacyAI_GetNumLandmarksBuiltForMe);CivRegisterReplace<CivHooks::CvDiplomacyAI_GetNumLandmarksBuiltForMe>(host, &ReplaceCvDiplomacyAI_GetNumLandmarksBuiltForMe);

Code

23077/// Built a landmark?23078int CvDiplomacyAI::GetNumLandmarksBuiltForMe(PlayerTypes ePlayer) const23079{23080	CvAssertMsg(ePlayer >= 0, "DIPLOMACY_AI: Invalid Player Index.  Please send Jon this with your last 5 autosaves and what changelist # you're playing.");23081	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.");2308223083	return m_paiNumLandmarksBuiltForMe[ePlayer];23084}

Called by