Bazaar developer reference

CvUnit::IsOnImprovement(ImprovementTypes) const

Defined in
CvUnit.cpp, line 25550
Class
CvUnit
Hook name
CivHooks::CvUnit_IsOnImprovement

Hooks

static bool BeforeCvUnit_IsOnImprovement(const CvUnit* self, ImprovementTypes iImprovementType, bool& result);static void AfterCvUnit_IsOnImprovement(const CvUnit* self, ImprovementTypes iImprovementType, bool& result);static bool ReplaceCvUnit_IsOnImprovement(bool (*original)(const CvUnit*, ImprovementTypes), const CvUnit* self, ImprovementTypes iImprovementType);CivRegisterBefore<CivHooks::CvUnit_IsOnImprovement>(host, &BeforeCvUnit_IsOnImprovement);CivRegisterAfter<CivHooks::CvUnit_IsOnImprovement>(host, &AfterCvUnit_IsOnImprovement);CivRegisterReplace<CivHooks::CvUnit_IsOnImprovement>(host, &ReplaceCvUnit_IsOnImprovement);

Code

25550bool CvUnit::IsOnImprovement(ImprovementTypes iImprovementType) const25551{25552	return plot()->HasImprovement(iImprovementType);25553}

Calls

Called by