CvResolutionEffects::CvResolutionEffects(ResolutionTypes)
- Defined in
- CvVotingClasses.cpp, line 202
- Class
- CvResolutionEffects
- Not a hook point
- constructor or destructor
Code
202CvResolutionEffects::CvResolutionEffects(ResolutionTypes eType)203{204 CvResolutionEntry* pInfo = GC.getResolutionInfo(eType); 205 CvAssertMsg(pInfo, "Resolution info is null when instantiating ResolutionEffects. Please send Anton your save file and version.");206 if (pInfo)207 {208 bDiplomaticVictory = pInfo->IsDiplomaticVictory();209 bChangeLeagueHost = pInfo->IsChangeLeagueHost();210 iOneTimeGold = pInfo->GetOneTimeGold();211 iOneTimeGoldPercent = pInfo->GetOneTimeGoldPercent();212 bRaiseCityStateInfluenceToNeutral = pInfo->IsRaiseCityStateInfluenceToNeutral();213 eLeagueProjectEnabled = pInfo->GetLeagueProjectEnabled();214 iGoldPerTurn = pInfo->GetGoldPerTurn();215 iResourceQuantity = pInfo->GetResourceQuantity();216 bEmbargoCityStates = pInfo->IsEmbargoCityStates();217 bEmbargoPlayer = pInfo->IsEmbargoPlayer();218 bNoResourceHappiness = pInfo->IsNoResourceHappiness();219 iUnitMaintenanceGoldPercent = pInfo->GetUnitMaintenanceGoldPercent();220 iMemberDiscoveredTechMod = pInfo->GetMemberDiscoveredTechMod();221 iCulturePerWonder = pInfo->GetCulturePerWonder();222 iCulturePerNaturalWonder = pInfo->GetCulturePerNaturalWonder();223 bNoTrainingNuclearWeapons = pInfo->IsNoTrainingNuclearWeapons();224 iVotesForFollowingReligion = pInfo->GetVotesForFollowingReligion();225 iHolyCityTourism = pInfo->GetHolyCityTourism();226 iReligionSpreadStrengthMod = pInfo->GetReligionSpreadStrengthMod();227 iVotesForFollowingIdeology = pInfo->GetVotesForFollowingIdeology();228 iOtherIdeologyRebellionMod = pInfo->GetOtherIdeologyRebellionMod();229 iArtsyGreatPersonRateMod = pInfo->GetArtsyGreatPersonRateMod();230 iScienceyGreatPersonRateMod = pInfo->GetScienceyGreatPersonRateMod();231 iGreatPersonTileImprovementCulture = pInfo->GetGreatPersonTileImprovementCulture();232 iLandmarkCulture = pInfo->GetLandmarkCulture();233 }234}
Calls
- CvGlobals::getResolutionInfo(ResolutionTypes)
- CvResolutionEntry::GetArtsyGreatPersonRateMod() const
- CvResolutionEntry::GetCulturePerNaturalWonder() const
- CvResolutionEntry::GetCulturePerWonder() const
- CvResolutionEntry::GetGoldPerTurn() const
- CvResolutionEntry::GetGreatPersonTileImprovementCulture() const
- CvResolutionEntry::GetHolyCityTourism() const
- CvResolutionEntry::GetLandmarkCulture() const
- CvResolutionEntry::GetLeagueProjectEnabled() const
- CvResolutionEntry::GetMemberDiscoveredTechMod() const
- CvResolutionEntry::GetOneTimeGold() const
- CvResolutionEntry::GetOneTimeGoldPercent() const
- CvResolutionEntry::GetOtherIdeologyRebellionMod() const
- CvResolutionEntry::GetReligionSpreadStrengthMod() const
- CvResolutionEntry::GetResourceQuantity() const
- CvResolutionEntry::GetScienceyGreatPersonRateMod() const
- CvResolutionEntry::GetUnitMaintenanceGoldPercent() const
- CvResolutionEntry::GetVotesForFollowingIdeology() const
- CvResolutionEntry::GetVotesForFollowingReligion() const
- CvResolutionEntry::IsChangeLeagueHost() const
- CvResolutionEntry::IsDiplomaticVictory() const
- CvResolutionEntry::IsEmbargoCityStates() const
- CvResolutionEntry::IsEmbargoPlayer() const
- CvResolutionEntry::IsNoResourceHappiness() const
- CvResolutionEntry::IsNoTrainingNuclearWeapons() const
- CvResolutionEntry::IsRaiseCityStateInfluenceToNeutral() const