CvResourceInfo::getTechReveal() const
- Defined in
- CvInfos.cpp, line 4452
- Class
- CvResourceInfo
- Hook name
CivHooks::CvResourceInfo_getTechReveal
Hooks
static bool BeforeCvResourceInfo_getTechReveal(const CvResourceInfo* self, int& result);static void AfterCvResourceInfo_getTechReveal(const CvResourceInfo* self, int& result);static int ReplaceCvResourceInfo_getTechReveal(int (*original)(const CvResourceInfo*), const CvResourceInfo* self);CivRegisterBefore<CivHooks::CvResourceInfo_getTechReveal>(host, &BeforeCvResourceInfo_getTechReveal);CivRegisterAfter<CivHooks::CvResourceInfo_getTechReveal>(host, &AfterCvResourceInfo_getTechReveal);CivRegisterReplace<CivHooks::CvResourceInfo_getTechReveal>(host, &ReplaceCvResourceInfo_getTechReveal);
Code
4452int CvResourceInfo::getTechReveal() const4453{4454 return m_iTechReveal;4455}
Called by
- CvCity::GetIndividualPlotScore(const CvPlot *) const
- CvCity::GetResourceDemanded(bool) const
- CvMinorCivAI::GetNearbyResourceForQuest(PlayerTypes)
- CvPlayer::canReceiveGoody(CvPlot *, GoodyTypes, CvUnit *) const
- CvPlayer::receiveGoody(CvPlot *, GoodyTypes, CvUnit *)
- CvPlot::calculateYield(YieldTypes, bool)
- CvPlot::doImprovement()
- CvPlot::getNumResourceForPlayer(PlayerTypes) const
- CvPlot::getResourceType(TeamTypes) const
- CvPlot::getYieldWithBuild(BuildTypes, YieldTypes, bool, PlayerTypes) const
- CvTeam::processTech(TechTypes, int)
- CvTeam::setHasTech(TechTypes, bool, PlayerTypes, bool, bool)