Bazaar developer reference

CvPlayer::ChangeNumPlotsBought(int)

Defined in
CvPlayer.cpp, line 26529
Class
CvPlayer
Hook name
CivHooks::CvPlayer_ChangeNumPlotsBought

Hooks

static bool BeforeCvPlayer_ChangeNumPlotsBought(CvPlayer* self, int iChange);static void AfterCvPlayer_ChangeNumPlotsBought(CvPlayer* self, int iChange);static void ReplaceCvPlayer_ChangeNumPlotsBought(void (*original)(CvPlayer*, int), CvPlayer* self, int iChange);CivRegisterBefore<CivHooks::CvPlayer_ChangeNumPlotsBought>(host, &BeforeCvPlayer_ChangeNumPlotsBought);CivRegisterAfter<CivHooks::CvPlayer_ChangeNumPlotsBought>(host, &AfterCvPlayer_ChangeNumPlotsBought);CivRegisterReplace<CivHooks::CvPlayer_ChangeNumPlotsBought>(host, &ReplaceCvPlayer_ChangeNumPlotsBought);

Code

26528/// Changes how many Plot has this player bought (costs should ramp up as more are purchased)26529void CvPlayer::ChangeNumPlotsBought(int iChange)26530{26531	if(iChange != 0)26532	{26533		SetNumPlotsBought(GetNumPlotsBought() + iChange);26534	}26535}

Calls

Called by