Bazaar developer reference

CvPlayer::SetNumPlotsBought(int)

Defined in
CvPlayer.cpp, line 26521
Class
CvPlayer
Hook name
CivHooks::CvPlayer_SetNumPlotsBought

Hooks

static bool BeforeCvPlayer_SetNumPlotsBought(CvPlayer* self, int iValue);static void AfterCvPlayer_SetNumPlotsBought(CvPlayer* self, int iValue);static void ReplaceCvPlayer_SetNumPlotsBought(void (*original)(CvPlayer*, int), CvPlayer* self, int iValue);CivRegisterBefore<CivHooks::CvPlayer_SetNumPlotsBought>(host, &BeforeCvPlayer_SetNumPlotsBought);CivRegisterAfter<CivHooks::CvPlayer_SetNumPlotsBought>(host, &AfterCvPlayer_SetNumPlotsBought);CivRegisterReplace<CivHooks::CvPlayer_SetNumPlotsBought>(host, &ReplaceCvPlayer_SetNumPlotsBought);

Code

26520/// Sets how many Plot has this player bought (costs should ramp up as more are purchased)26521void CvPlayer::SetNumPlotsBought(int iValue)26522{26523	CvAssert(iValue >= 0);26524	m_iNumPlotsBought = iValue;26525}

Calls

Called by