Bazaar developer reference

CvTeam::isSimultaneousTurns() const

Defined in
CvTeam.cpp, line 6850
Class
CvTeam
Hook name
CivHooks::CvTeam_isSimultaneousTurns

Hooks

static bool BeforeCvTeam_isSimultaneousTurns(const CvTeam* self, bool& result);static void AfterCvTeam_isSimultaneousTurns(const CvTeam* self, bool& result);static bool ReplaceCvTeam_isSimultaneousTurns(bool (*original)(const CvTeam*), const CvTeam* self);CivRegisterBefore<CivHooks::CvTeam_isSimultaneousTurns>(host, &BeforeCvTeam_isSimultaneousTurns);CivRegisterAfter<CivHooks::CvTeam_isSimultaneousTurns>(host, &AfterCvTeam_isSimultaneousTurns);CivRegisterReplace<CivHooks::CvTeam_isSimultaneousTurns>(host, &ReplaceCvTeam_isSimultaneousTurns);

Code

6850bool CvTeam::isSimultaneousTurns() const6851{//determine if this team is running simultaneous turns or not.6852	for(int iPlayer = 0; iPlayer < MAX_PLAYERS; ++iPlayer)6853	{6854		CvPlayer& kPlayer = GET_PLAYER((PlayerTypes)iPlayer);6855		if(kPlayer.isAlive() && kPlayer.getTeam() == GetID())6856		{6857			//just use the status of the first player we find for this team.6858			return kPlayer.isSimultaneousTurns();6859		}6860	}68616862	return false;6863}

Calls

Called by