CvUnitEntry::GetProductionCost() const
- Defined in
- CvUnitClasses.cpp, line 495
- Class
- CvUnitEntry
- Hook name
CivHooks::CvUnitEntry_GetProductionCost
Hooks
static bool BeforeCvUnitEntry_GetProductionCost(const CvUnitEntry* self, int& result);static void AfterCvUnitEntry_GetProductionCost(const CvUnitEntry* self, int& result);static int ReplaceCvUnitEntry_GetProductionCost(int (*original)(const CvUnitEntry*), const CvUnitEntry* self);CivRegisterBefore<CivHooks::CvUnitEntry_GetProductionCost>(host, &BeforeCvUnitEntry_GetProductionCost);CivRegisterAfter<CivHooks::CvUnitEntry_GetProductionCost>(host, &AfterCvUnitEntry_GetProductionCost);CivRegisterReplace<CivHooks::CvUnitEntry_GetProductionCost>(host, &ReplaceCvUnitEntry_GetProductionCost);
Code
494/// Shields to construct the unit495int CvUnitEntry::GetProductionCost() const496{497 return m_iProductionCost;498}
Called by
- CvCity::getConscriptPopulation() const
- CvMinorCivAI::GetBestGreatPersonForQuest(PlayerTypes)
- CvPlayer::addFreeUnitAI(UnitAITypes, int)
- CvPlayer::canSpyDestroyUnit(PlayerTypes, CvUnit &) const
- CvPlayer::canTrain(UnitTypes, bool, bool, bool, bool, CvString *) const
- CvPlayer::disbandUnit(bool)
- CvPlayer::getProductionNeeded(UnitTypes) const
- CvReligionAI::GetDesiredFaithGreatPerson() const
- CvUnit::GetScrapGold() const