Bazaar developer reference

CvQuestInfo::isEnabled() const

Defined in
CvQuestInfo.cpp, line 46
Class
CvQuestInfo
Hook name
CivHooks::CvQuestInfo_isEnabled

Hooks

static bool BeforeCvQuestInfo_isEnabled(const CvQuestInfo* self, bool& result);static void AfterCvQuestInfo_isEnabled(const CvQuestInfo* self, bool& result);static bool ReplaceCvQuestInfo_isEnabled(bool (*original)(const CvQuestInfo*), const CvQuestInfo* self);CivRegisterBefore<CivHooks::CvQuestInfo_isEnabled>(host, &BeforeCvQuestInfo_isEnabled);CivRegisterAfter<CivHooks::CvQuestInfo_isEnabled>(host, &AfterCvQuestInfo_isEnabled);CivRegisterReplace<CivHooks::CvQuestInfo_isEnabled>(host, &ReplaceCvQuestInfo_isEnabled);

Code

46bool CvQuestInfo::isEnabled() const47{48	if (!m_strDisabledOnOption.IsEmpty())49	{50		int i = 0;51		CvPreGame::GetGameOption(m_strDisabledOnOption.c_str(), i);52		53		if (i == 1) return false;54	}5556	return m_bEnabled;57}

Calls

Called by