Bazaar developer reference

CvPlot::isOwnershipScore() const

Defined in
CvPlot.cpp, line 4748
Class
CvPlot
Hook name
CivHooks::CvPlot_isOwnershipScore

Hooks

static bool BeforeCvPlot_isOwnershipScore(const CvPlot* self, bool& result);static void AfterCvPlot_isOwnershipScore(const CvPlot* self, bool& result);static bool ReplaceCvPlot_isOwnershipScore(bool (*original)(const CvPlot*), const CvPlot* self);CivRegisterBefore<CivHooks::CvPlot_isOwnershipScore>(host, &BeforeCvPlot_isOwnershipScore);CivRegisterAfter<CivHooks::CvPlot_isOwnershipScore>(host, &AfterCvPlot_isOwnershipScore);CivRegisterReplace<CivHooks::CvPlot_isOwnershipScore>(host, &ReplaceCvPlot_isOwnershipScore);

Code

4748bool CvPlot::isOwnershipScore() const4749{4750	return (getOwnershipDuration() >= GC.getOWNERSHIP_SCORE_DURATION_THRESHOLD());4751}

Calls

Called by