ExecuteHeroChain.h 867 B

12345678910111213141516171819202122232425262728293031323334353637
  1. /*
  2. * ExecuteHeroChain.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. namespace Goals
  13. {
  14. class DLL_EXPORT ExecuteHeroChain : public CGoal<ExecuteHeroChain>
  15. {
  16. private:
  17. AIPath chainPath;
  18. std::string targetName;
  19. public:
  20. ExecuteHeroChain(const AIPath & path, const CGObjectInstance * obj = nullptr);
  21. TGoalVec getAllPossibleSubgoals() override
  22. {
  23. return TGoalVec();
  24. }
  25. TSubgoal whatToDoToAchieve() override;
  26. void accept(VCAI * ai) override;
  27. std::string name() const override;
  28. std::string completeMessage() const override;
  29. virtual bool operator==(const ExecuteHeroChain & other) const override;
  30. const AIPath & getPath() const { return chainPath; }
  31. };
  32. }