CvMinorCivAI::DoTestActiveQuestsForPlayer(PlayerTypes, bool, bool, MinorCivQuestTypes)
- Defined in
- CvMinorCivAI.cpp, line 3859
- Class
- CvMinorCivAI
- Hook name
CivHooks::CvMinorCivAI_DoTestActiveQuestsForPlayer
Hooks
static bool BeforeCvMinorCivAI_DoTestActiveQuestsForPlayer(CvMinorCivAI* self, PlayerTypes ePlayer, bool bTestComplete, bool bTestObsolete, MinorCivQuestTypes eQuest);static void AfterCvMinorCivAI_DoTestActiveQuestsForPlayer(CvMinorCivAI* self, PlayerTypes ePlayer, bool bTestComplete, bool bTestObsolete, MinorCivQuestTypes eQuest);static void ReplaceCvMinorCivAI_DoTestActiveQuestsForPlayer(void (*original)(CvMinorCivAI*, PlayerTypes, bool, bool, MinorCivQuestTypes), CvMinorCivAI* self, PlayerTypes ePlayer, bool bTestComplete, bool bTestObsolete, MinorCivQuestTypes eQuest);CivRegisterBefore<CivHooks::CvMinorCivAI_DoTestActiveQuestsForPlayer>(host, &BeforeCvMinorCivAI_DoTestActiveQuestsForPlayer);CivRegisterAfter<CivHooks::CvMinorCivAI_DoTestActiveQuestsForPlayer>(host, &AfterCvMinorCivAI_DoTestActiveQuestsForPlayer);CivRegisterReplace<CivHooks::CvMinorCivAI_DoTestActiveQuestsForPlayer>(host, &ReplaceCvMinorCivAI_DoTestActiveQuestsForPlayer);
Code
3857// Check all active quests for ePlayer, processing and deleting ones that are complete or obsolete.3858// If no quest type is specified, will check all quest types.3859void CvMinorCivAI::DoTestActiveQuestsForPlayer(PlayerTypes ePlayer, bool bTestComplete, bool bTestObsolete, MinorCivQuestTypes eQuest)3860{3861 if (bTestComplete)3862 DoCompletedQuestsForPlayer(ePlayer, eQuest);3863 3864 if (bTestObsolete)3865 DoObsoleteQuestsForPlayer(ePlayer, eQuest);3866}
Calls
Called by
- CvMinorCivAI::DoBulliedByMajorReaction(PlayerTypes, int)
- CvMinorCivAI::DoChangeProtectionFromMajor(PlayerTypes, bool, bool)
- CvMinorCivAI::DoGoldGiftFromMajor(PlayerTypes, int)
- CvUnit::initWithNameOffset(int, UnitTypes, int, UnitAITypes, PlayerTypes, int, int, DirectionTypes, bool, bool, int, int)
- CvUnit::setXY(int, int, bool, bool, bool, bool, bool)