Bazaar developer reference

CvBuildingEntry::GetNukeExplosionRand() const

Defined in
CvBuildingClasses.cpp, line 1050
Class
CvBuildingEntry
Hook name
CivHooks::CvBuildingEntry_GetNukeExplosionRand

Hooks

static bool BeforeCvBuildingEntry_GetNukeExplosionRand(const CvBuildingEntry* self, int& result);static void AfterCvBuildingEntry_GetNukeExplosionRand(const CvBuildingEntry* self, int& result);static int ReplaceCvBuildingEntry_GetNukeExplosionRand(int (*original)(const CvBuildingEntry*), const CvBuildingEntry* self);CivRegisterBefore<CivHooks::CvBuildingEntry_GetNukeExplosionRand>(host, &BeforeCvBuildingEntry_GetNukeExplosionRand);CivRegisterAfter<CivHooks::CvBuildingEntry_GetNukeExplosionRand>(host, &AfterCvBuildingEntry_GetNukeExplosionRand);CivRegisterReplace<CivHooks::CvBuildingEntry_GetNukeExplosionRand>(host, &ReplaceCvBuildingEntry_GetNukeExplosionRand);

Code

1049/// Will this building cause a big problem (meltdown) if the city is hit with a nuke?1050int CvBuildingEntry::GetNukeExplosionRand() const1051{1052	return m_iNukeExplosionRand;1053}

Called by