Bazaar developer reference

CvMinorCivQuest::UseEvents() const

Defined in
CvMinorCivAI.cpp, line 65
Class
CvMinorCivQuest
Hook name
CivHooks::CvMinorCivQuest_UseEvents

Hooks

static bool BeforeCvMinorCivQuest_UseEvents(const CvMinorCivQuest* self, bool& result);static void AfterCvMinorCivQuest_UseEvents(const CvMinorCivQuest* self, bool& result);static bool ReplaceCvMinorCivQuest_UseEvents(bool (*original)(const CvMinorCivQuest*), const CvMinorCivQuest* self);CivRegisterBefore<CivHooks::CvMinorCivQuest_UseEvents>(host, &BeforeCvMinorCivQuest_UseEvents);CivRegisterAfter<CivHooks::CvMinorCivQuest_UseEvents>(host, &AfterCvMinorCivQuest_UseEvents);CivRegisterReplace<CivHooks::CvMinorCivQuest_UseEvents>(host, &ReplaceCvMinorCivQuest_UseEvents);

Code

64#if defined(MOD_EVENTS_QUESTS)65bool CvMinorCivQuest::UseEvents() const66{67    return (MOD_EVENTS_QUESTS && m_pQuestInfo);68}

Calls

Called by