Bazaar developer reference

CvUnit::HasUnusedGreatWork() const

Defined in
CvUnit.cpp, line 20139
Class
CvUnit
Hook name
CivHooks::CvUnit_HasUnusedGreatWork

Hooks

static bool BeforeCvUnit_HasUnusedGreatWork(const CvUnit* self, bool& result);static void AfterCvUnit_HasUnusedGreatWork(const CvUnit* self, bool& result);static bool ReplaceCvUnit_HasUnusedGreatWork(bool (*original)(const CvUnit*), const CvUnit* self);CivRegisterBefore<CivHooks::CvUnit_HasUnusedGreatWork>(host, &BeforeCvUnit_HasUnusedGreatWork);CivRegisterAfter<CivHooks::CvUnit_HasUnusedGreatWork>(host, &AfterCvUnit_HasUnusedGreatWork);CivRegisterReplace<CivHooks::CvUnit_HasUnusedGreatWork>(host, &ReplaceCvUnit_HasUnusedGreatWork);

Code

20139bool CvUnit::HasUnusedGreatWork() const20140{20141	return (HasGreatWork() && !GC.getGame().GetGameCulture()->IsGreatWorkCreated(m_eGreatWork));20142}

Calls

Called by