QuestAction.h 754 B

12345678910111213141516171819202122232425262728293031323334353637
  1. /*
  2. * QuestAction.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 "SpecialAction.h"
  12. #include "../../../../lib/CGameState.h"
  13. namespace AIPathfinding
  14. {
  15. class QuestAction : public SpecialAction
  16. {
  17. private:
  18. QuestInfo questInfo;
  19. public:
  20. QuestAction(QuestInfo questInfo)
  21. :questInfo(questInfo)
  22. {
  23. }
  24. virtual bool canAct(const AIPathNode * node) const override;
  25. virtual Goals::TSubgoal decompose(const CGHeroInstance * hero) const override;
  26. virtual void execute(const CGHeroInstance * hero) const override;
  27. virtual std::string toString() const override;
  28. };
  29. }