Bazaar developer reference

CvGame::isSimultaneousTeamTurns() const

Defined in
CvGame.cpp, line 5574
Class
CvGame
Hook name
CivHooks::CvGame_isSimultaneousTeamTurns

Hooks

static bool BeforeCvGame_isSimultaneousTeamTurns(const CvGame* self, bool& result);static void AfterCvGame_isSimultaneousTeamTurns(const CvGame* self, bool& result);static bool ReplaceCvGame_isSimultaneousTeamTurns(bool (*original)(const CvGame*), const CvGame* self);CivRegisterBefore<CivHooks::CvGame_isSimultaneousTeamTurns>(host, &BeforeCvGame_isSimultaneousTeamTurns);CivRegisterAfter<CivHooks::CvGame_isSimultaneousTeamTurns>(host, &AfterCvGame_isSimultaneousTeamTurns);CivRegisterReplace<CivHooks::CvGame_isSimultaneousTeamTurns>(host, &ReplaceCvGame_isSimultaneousTeamTurns);

Code

5574bool CvGame::isSimultaneousTeamTurns() const5575{//When players are taking sequential turns, do they take them simultaneous with every member of their team?5576 //WARNING:  This function doesn't indicate if a player is taking sequential turns or not.5577	//		 Use CvPlayer::isSimultaneousTurns() to determine that.5578	if(!isNetworkMultiPlayer())5579	{5580		return false;5581	}55825583	if(!isOption(GAMEOPTION_DYNAMIC_TURNS) && isOption(GAMEOPTION_SIMULTANEOUS_TURNS))5584	{//truely simultaneous turn mode doesn't do this.5585		return false;5586	}55875588	return true;5589}

Calls

Called by