Bazaar developer reference

CvGame::setTargetScore(int)

Defined in
CvGame.cpp, line 4770
Class
CvGame
Hook name
CivHooks::CvGame_setTargetScore

Hooks

static bool BeforeCvGame_setTargetScore(CvGame* self, int iNewValue);static void AfterCvGame_setTargetScore(CvGame* self, int iNewValue);static void ReplaceCvGame_setTargetScore(void (*original)(CvGame*, int), CvGame* self, int iNewValue);CivRegisterBefore<CivHooks::CvGame_setTargetScore>(host, &BeforeCvGame_setTargetScore);CivRegisterAfter<CivHooks::CvGame_setTargetScore>(host, &AfterCvGame_setTargetScore);CivRegisterReplace<CivHooks::CvGame_setTargetScore>(host, &ReplaceCvGame_setTargetScore);

Code

4770void CvGame::setTargetScore(int iNewValue)4771{4772	CvPreGame::setTargetScore(iNewValue);4773	CvAssert(getTargetScore() >= 0);4774}

Calls

Called by