Bazaar developer reference

CvGameLeagues::IsNoTrainingNuclearWeapons(PlayerTypes)

Defined in
CvVotingClasses.cpp, line 7255
Class
CvGameLeagues
Hook name
CivHooks::CvGameLeagues_IsNoTrainingNuclearWeapons

Hooks

static bool BeforeCvGameLeagues_IsNoTrainingNuclearWeapons(CvGameLeagues* self, PlayerTypes ePlayer, bool& result);static void AfterCvGameLeagues_IsNoTrainingNuclearWeapons(CvGameLeagues* self, PlayerTypes ePlayer, bool& result);static bool ReplaceCvGameLeagues_IsNoTrainingNuclearWeapons(bool (*original)(CvGameLeagues*, PlayerTypes), CvGameLeagues* self, PlayerTypes ePlayer);CivRegisterBefore<CivHooks::CvGameLeagues_IsNoTrainingNuclearWeapons>(host, &BeforeCvGameLeagues_IsNoTrainingNuclearWeapons);CivRegisterAfter<CivHooks::CvGameLeagues_IsNoTrainingNuclearWeapons>(host, &AfterCvGameLeagues_IsNoTrainingNuclearWeapons);CivRegisterReplace<CivHooks::CvGameLeagues_IsNoTrainingNuclearWeapons>(host, &ReplaceCvGameLeagues_IsNoTrainingNuclearWeapons);

Code

7255bool CvGameLeagues::IsNoTrainingNuclearWeapons(PlayerTypes ePlayer)7256{7257	for (LeagueList::iterator it = m_vActiveLeagues.begin(); it != m_vActiveLeagues.end(); it++)7258	{7259		if (it->IsMember(ePlayer))7260		{7261			if (it->IsNoTrainingNuclearWeapons())7262			{7263				return true;7264			}7265		}7266	}7267	return false;7268}

Calls

Called by