Bazaar developer reference

CvPlayer::setTurnActiveForPbem(bool)

Defined in
CvPlayer.cpp, line 17829
Class
CvPlayer
Hook name
CivHooks::CvPlayer_setTurnActiveForPbem

Hooks

static bool BeforeCvPlayer_setTurnActiveForPbem(CvPlayer* self, bool bActive);static void AfterCvPlayer_setTurnActiveForPbem(CvPlayer* self, bool bActive);static void ReplaceCvPlayer_setTurnActiveForPbem(void (*original)(CvPlayer*, bool), CvPlayer* self, bool bActive);CivRegisterBefore<CivHooks::CvPlayer_setTurnActiveForPbem>(host, &BeforeCvPlayer_setTurnActiveForPbem);CivRegisterAfter<CivHooks::CvPlayer_setTurnActiveForPbem>(host, &AfterCvPlayer_setTurnActiveForPbem);CivRegisterReplace<CivHooks::CvPlayer_setTurnActiveForPbem>(host, &ReplaceCvPlayer_setTurnActiveForPbem);

Code

17829void CvPlayer::setTurnActiveForPbem(bool bActive)17830{17831	CvAssertMsg(GC.getGame().isPbem(), "You are using setTurnActiveForPbem. Are you sure you know what you're doing?");1783217833	// does nothing more than to set the member variable before saving the game17834	// the rest of the turn will be performed upon loading the game17835	// This allows the player to browse the game in paused mode after he has generated the save17836	if(isTurnActive() != bActive)17837	{17838		m_bTurnActive = bActive;17839		GC.getGame().changeNumGameTurnActive(isTurnActive() ? 1 : -1, "setTurnActiveForPlayByEmail");17840	}17841}

Calls