Bazaar developer reference

CvDiplomacyAI::GetNegativeArchaeologyPoints(PlayerTypes) const

Defined in
CvDiplomacyAI.cpp, line 23152
Class
CvDiplomacyAI
Hook name
CivHooks::CvDiplomacyAI_GetNegativeArchaeologyPoints

Hooks

static bool BeforeCvDiplomacyAI_GetNegativeArchaeologyPoints(const CvDiplomacyAI* self, PlayerTypes ePlayer, int& result);static void AfterCvDiplomacyAI_GetNegativeArchaeologyPoints(const CvDiplomacyAI* self, PlayerTypes ePlayer, int& result);static int ReplaceCvDiplomacyAI_GetNegativeArchaeologyPoints(int (*original)(const CvDiplomacyAI*, PlayerTypes), const CvDiplomacyAI* self, PlayerTypes ePlayer);CivRegisterBefore<CivHooks::CvDiplomacyAI_GetNegativeArchaeologyPoints>(host, &BeforeCvDiplomacyAI_GetNegativeArchaeologyPoints);CivRegisterAfter<CivHooks::CvDiplomacyAI_GetNegativeArchaeologyPoints>(host, &AfterCvDiplomacyAI_GetNegativeArchaeologyPoints);CivRegisterReplace<CivHooks::CvDiplomacyAI_GetNegativeArchaeologyPoints>(host, &ReplaceCvDiplomacyAI_GetNegativeArchaeologyPoints);

Code

23151/// Amount of dug up sites?23152int CvDiplomacyAI::GetNegativeArchaeologyPoints(PlayerTypes ePlayer) const23153{23154	CvAssertMsg(ePlayer >= 0, "DIPLOMACY_AI: Invalid Player Index.  Please send Ed this with your last 5 autosaves and what changelist # you're playing.");23155	CvAssertMsg(ePlayer < MAX_MAJOR_CIVS, "DIPLOMACY_AI: Invalid Player Index.  Please send Ed this with your last 5 autosaves and what changelist # you're playing.");2315623157	int iRtnValue = m_paiNegativeArchaeologyPoints[ePlayer];23158	return iRtnValue;23159}

Called by