CvBuildingEntry::GetGreatWorkCount() const
- Defined in
- CvBuildingClasses.cpp, line 882
- Class
- CvBuildingEntry
- Hook name
CivHooks::CvBuildingEntry_GetGreatWorkCount
Hooks
static bool BeforeCvBuildingEntry_GetGreatWorkCount(const CvBuildingEntry* self, int& result);static void AfterCvBuildingEntry_GetGreatWorkCount(const CvBuildingEntry* self, int& result);static int ReplaceCvBuildingEntry_GetGreatWorkCount(int (*original)(const CvBuildingEntry*), const CvBuildingEntry* self);CivRegisterBefore<CivHooks::CvBuildingEntry_GetGreatWorkCount>(host, &BeforeCvBuildingEntry_GetGreatWorkCount);CivRegisterAfter<CivHooks::CvBuildingEntry_GetGreatWorkCount>(host, &AfterCvBuildingEntry_GetGreatWorkCount);CivRegisterReplace<CivHooks::CvBuildingEntry_GetGreatWorkCount>(host, &ReplaceCvBuildingEntry_GetGreatWorkCount);
Code
881/// How many great works are allowed by this Building882int CvBuildingEntry::GetGreatWorkCount() const883{884 return m_iGreatWorkCount;885}
Called by
- CvCityBuildings::GetNextAvailableGreatWorkSlot(BuildingClassTypes *, int *) const
- CvCityBuildings::GetNextAvailableGreatWorkSlot(GreatWorkSlotType, BuildingClassTypes *, int *) const
- CvCityBuildings::GetNumAvailableGreatWorkSlots() const
- CvCityBuildings::GetNumAvailableGreatWorkSlots(GreatWorkSlotType) const
- CultureHelpers::GetThemingBonusIndex(PlayerTypes, CvBuildingEntry *, vector<int> &)
- CvCityCulture::ClearGreatWorks()
- CvCityCulture::GetSlotTypeFirstAvailableCultureBuilding() const
- CvCityCulture::GetThemingBonusIndex(BuildingClassTypes) const
- CvGameCulture::GetGreatWorkCity(int) const
- CvGameCulture::GetGreatWorkController(int) const
- CvGameCulture::GetGreatWorkCurrentThemingBonus(int) const
- CvGameCulture::SwapGreatWorks(PlayerTypes, int, PlayerTypes, int)
- CvPlayerCulture::ControlsGreatWork(int)
- CvPlayerCulture::DoSwapGreatWorks(YieldTypes)
- CvPlayerCulture::DoTurn()
- CvPlayerCulture::FillBuilding(vector<CvGreatWorkBuildingInMyEmpire>::const_iterator, vector<CvGreatWorkInMyEmpire> &, vector<CvGreatWorkInMyEmpire> &)
- CvPlayerCulture::GetGreatWorkLocation(int, int &, BuildingTypes &, int &)
- CvPlayerCulture::ThemeBuilding(vector<CvGreatWorkBuildingInMyEmpire>::const_iterator, vector<CvGreatWorkInMyEmpire> &, vector<CvGreatWorkInMyEmpire> &, bool)
- CvPlayerCulture::ThemeEqualArtArtifact(CvGreatWorkBuildingInMyEmpire, int, int, vector<CvGreatWorkInMyEmpire> &, vector<CvGreatWorkInMyEmpire> &, bool)
- CvPlayer::acquireCity(CvCity *, bool, bool, bool)
- CvLuaPlayer::lGetGreatWorks(lua_State *)