CvPlot::getBuildProgress(BuildTypes) const
- Defined in
- CvPlot.cpp, line 9769
- Class
- CvPlot
- Hook name
CivHooks::CvPlot_getBuildProgress
Hooks
static bool BeforeCvPlot_getBuildProgress(const CvPlot* self, BuildTypes eBuild, int& result);static void AfterCvPlot_getBuildProgress(const CvPlot* self, BuildTypes eBuild, int& result);static int ReplaceCvPlot_getBuildProgress(int (*original)(const CvPlot*, BuildTypes), const CvPlot* self, BuildTypes eBuild);CivRegisterBefore<CivHooks::CvPlot_getBuildProgress>(host, &BeforeCvPlot_getBuildProgress);CivRegisterAfter<CivHooks::CvPlot_getBuildProgress>(host, &AfterCvPlot_getBuildProgress);CivRegisterReplace<CivHooks::CvPlot_getBuildProgress>(host, &ReplaceCvPlot_getBuildProgress);
Code
9769int CvPlot::getBuildProgress(BuildTypes eBuild) const9770{9771 if(NULL == m_paiBuildProgress)9772 {9773 return 0;9774 }97759776 return m_paiBuildProgress[eBuild];9777}
Called by
- CvDllPlot::GetBuildProgress(BuildTypes) const
- CvPlayer::getBuildCost(const CvPlot *, BuildTypes) const
- CvPlot::canBuild(BuildTypes, PlayerTypes, bool, bool) const
- CvPlot::changeBuildProgress(BuildTypes, int, PlayerTypes)
- CvPlot::getBuildTurnsLeft(BuildTypes, PlayerTypes, int, int) const
- CvPlot::updateLayout(bool)
- CvUnit::build(BuildTypes)
- CvLuaPlot::lGetBuildProgress(lua_State *)