Bazaar developer reference

CvTeam::IsSmallAwardAchieved(SmallAwardTypes) const

Defined in
CvTeam.cpp, line 5375
Class
CvTeam
Hook name
CivHooks::CvTeam_IsSmallAwardAchieved

Hooks

static bool BeforeCvTeam_IsSmallAwardAchieved(const CvTeam* self, SmallAwardTypes eAward, bool& result);static void AfterCvTeam_IsSmallAwardAchieved(const CvTeam* self, SmallAwardTypes eAward, bool& result);static bool ReplaceCvTeam_IsSmallAwardAchieved(bool (*original)(const CvTeam*, SmallAwardTypes), const CvTeam* self, SmallAwardTypes eAward);CivRegisterBefore<CivHooks::CvTeam_IsSmallAwardAchieved>(host, &BeforeCvTeam_IsSmallAwardAchieved);CivRegisterAfter<CivHooks::CvTeam_IsSmallAwardAchieved>(host, &AfterCvTeam_IsSmallAwardAchieved);CivRegisterReplace<CivHooks::CvTeam_IsSmallAwardAchieved>(host, &ReplaceCvTeam_IsSmallAwardAchieved);

Code

5374/// Have we achieved a Small Award already?5375bool CvTeam::IsSmallAwardAchieved(SmallAwardTypes eAward) const5376{5377	FAssert(eAward >= 0);5378	FAssert(eAward < GC.getNumSmallAwardInfos());53795380	return m_abSmallAwardAchieved[eAward];5381}

Called by