CvGlobals::getQuestInfo(int)
- Defined in
- CvGlobals.cpp, line 2939
- Class
- CvGlobals
- Hook name
CivHooks::CvGlobals_getQuestInfo_with_int
Hooks
static bool BeforeCvGlobals_getQuestInfo_with_int(CvGlobals* self, int eQuestNum, CvQuestInfo*& result);static void AfterCvGlobals_getQuestInfo_with_int(CvGlobals* self, int eQuestNum, CvQuestInfo*& result);static CvQuestInfo* ReplaceCvGlobals_getQuestInfo_with_int(CvQuestInfo* (*original)(CvGlobals*, int), CvGlobals* self, int eQuestNum);CivRegisterBefore<CivHooks::CvGlobals_getQuestInfo_with_int>(host, &BeforeCvGlobals_getQuestInfo_with_int);CivRegisterAfter<CivHooks::CvGlobals_getQuestInfo_with_int>(host, &AfterCvGlobals_getQuestInfo_with_int);CivRegisterReplace<CivHooks::CvGlobals_getQuestInfo_with_int>(host, &ReplaceCvGlobals_getQuestInfo_with_int);
Code
2939CvQuestInfo* CvGlobals::getQuestInfo(/*MinorCivQuestTypes*/ int eQuestNum)2940{2941 if (MOD_EVENTS_QUESTS) {2942 CvAssert(eQuestNum > -1);2943 CvAssert(eQuestNum < GC.getNumQuestInfos());2944 if(eQuestNum > -1 && eQuestNum < (int)m_paQuestInfo.size())2945 return m_paQuestInfo[eQuestNum];2946 else2947 return NULL;2948 } else {2949 return NULL;2950 }2951}
Calls
- CustomMods::isEVENTS_QUESTS()
std::vector::operator[]std::vector::size
Called by
- CvMinorCivAI::GetMinPlayersNeededForQuest(MinorCivQuestTypes) const
- CvMinorCivAI::GetPersonalityQuestBias(MinorCivQuestTypes)
- CvMinorCivAI::IsEnabledQuest(MinorCivQuestTypes)
- CvMinorCivAI::IsGlobalQuest(MinorCivQuestTypes) const
- CvMinorCivAI::IsValidQuestForPlayer(PlayerTypes, MinorCivQuestTypes)
- CvMinorCivQuest::CvMinorCivQuest(PlayerTypes, PlayerTypes, MinorCivQuestTypes)
- operator>>(FDataStream &, CvMinorCivQuest &)