Bazaar developer reference

CvPlot::MustPayMaintenanceHere(PlayerTypes) const

Defined in
CvPlot.cpp, line 11742
Class
CvPlot
Hook name
CivHooks::CvPlot_MustPayMaintenanceHere

Hooks

static bool BeforeCvPlot_MustPayMaintenanceHere(const CvPlot* self, PlayerTypes ePlayer, bool& result);static void AfterCvPlot_MustPayMaintenanceHere(const CvPlot* self, PlayerTypes ePlayer, bool& result);static bool ReplaceCvPlot_MustPayMaintenanceHere(bool (*original)(const CvPlot*, PlayerTypes), const CvPlot* self, PlayerTypes ePlayer);CivRegisterBefore<CivHooks::CvPlot_MustPayMaintenanceHere>(host, &BeforeCvPlot_MustPayMaintenanceHere);CivRegisterAfter<CivHooks::CvPlot_MustPayMaintenanceHere>(host, &AfterCvPlot_MustPayMaintenanceHere);CivRegisterReplace<CivHooks::CvPlot_MustPayMaintenanceHere>(host, &ReplaceCvPlot_MustPayMaintenanceHere);

Code

11741/// Some reason we don't need to pay maintenance here?11742bool CvPlot::MustPayMaintenanceHere(PlayerTypes ePlayer) const11743{11744	if(isHills() && GET_PLAYER(ePlayer).GetPlayerTraits()->IsNoHillsImprovementMaintenance())11745	{11746		return false;11747	}1174811749	return true;11750}

Calls

Called by