Bazaar developer reference

CvGame::getPlayerScore(PlayerTypes)

Defined in
CvGame.cpp, line 7179
Class
CvGame
Hook name
CivHooks::CvGame_getPlayerScore

Hooks

static bool BeforeCvGame_getPlayerScore(CvGame* self, PlayerTypes ePlayer, int& result);static void AfterCvGame_getPlayerScore(CvGame* self, PlayerTypes ePlayer, int& result);static int ReplaceCvGame_getPlayerScore(int (*original)(CvGame*, PlayerTypes), CvGame* self, PlayerTypes ePlayer);CivRegisterBefore<CivHooks::CvGame_getPlayerScore>(host, &BeforeCvGame_getPlayerScore);CivRegisterAfter<CivHooks::CvGame_getPlayerScore>(host, &AfterCvGame_getPlayerScore);CivRegisterReplace<CivHooks::CvGame_getPlayerScore>(host, &ReplaceCvGame_getPlayerScore);

Code

7179int CvGame::getPlayerScore(PlayerTypes ePlayer)7180{7181	CvAssertMsg(ePlayer >= 0, "eIndex is expected to be non-negative (invalid Index)");7182	CvAssertMsg(ePlayer < MAX_PLAYERS, "ePlayer is expected to be within maximum bounds (invalid Index)");7183	return m_aiPlayerScore[ePlayer];7184}

Called by