CompleteQuest.h 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. /*
  2. * CompleteQuest.h, part of VCMI engine
  3. *
  4. * Authors: listed in file AUTHORS in main folder
  5. *
  6. * License: GNU General Public License v2.0 or later
  7. * Full text of license available in license.txt file, in main folder
  8. *
  9. */
  10. #pragma once
  11. #include "CGoal.h"
  12. #include "../../../lib/VCMI_Lib.h"
  13. namespace Goals
  14. {
  15. class DLL_EXPORT CompleteQuest : public CGoal<CompleteQuest>
  16. {
  17. private:
  18. const QuestInfo q;
  19. public:
  20. CompleteQuest(const QuestInfo quest)
  21. : CGoal(Goals::COMPLETE_QUEST), q(quest)
  22. {
  23. }
  24. TGoalVec getAllPossibleSubgoals() override;
  25. TSubgoal whatToDoToAchieve() override;
  26. std::string name() const override;
  27. virtual bool operator==(const CompleteQuest & other) const override;
  28. private:
  29. TGoalVec tryCompleteQuest() const;
  30. TGoalVec missionArt() const;
  31. TGoalVec missionHero() const;
  32. TGoalVec missionArmy() const;
  33. TGoalVec missionResources() const;
  34. TGoalVec missionDestroyObj() const;
  35. TGoalVec missionIncreasePrimaryStat() const;
  36. TGoalVec missionLevel() const;
  37. TGoalVec missionKeymaster() const;
  38. std::string questToString() const;
  39. };
  40. }