Bazaar developer reference

CvGame::incrementEndTurnMessagesReceived(int)

Defined in
CvGame.cpp, line 7129
Class
CvGame
Hook name
CivHooks::CvGame_incrementEndTurnMessagesReceived

Hooks

static bool BeforeCvGame_incrementEndTurnMessagesReceived(CvGame* self, int iIndex);static void AfterCvGame_incrementEndTurnMessagesReceived(CvGame* self, int iIndex);static void ReplaceCvGame_incrementEndTurnMessagesReceived(void (*original)(CvGame*, int), CvGame* self, int iIndex);CivRegisterBefore<CivHooks::CvGame_incrementEndTurnMessagesReceived>(host, &BeforeCvGame_incrementEndTurnMessagesReceived);CivRegisterAfter<CivHooks::CvGame_incrementEndTurnMessagesReceived>(host, &AfterCvGame_incrementEndTurnMessagesReceived);CivRegisterReplace<CivHooks::CvGame_incrementEndTurnMessagesReceived>(host, &ReplaceCvGame_incrementEndTurnMessagesReceived);

Code

7129void CvGame::incrementEndTurnMessagesReceived(int iIndex)7130{7131	CvAssertMsg(iIndex >= 0, "iIndex is expected to be non-negative (invalid Index)");7132	CvAssertMsg(iIndex < MAX_PLAYERS, "iIndex is expected to be within maximum bounds (invalid Index)");7133	m_aiEndTurnMessagesReceived[iIndex]++;7134}