VisitHero.h 799 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. /*
  2. * VisitHero.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. struct HeroPtr;
  13. class VCAI;
  14. class FuzzyHelper;
  15. namespace Goals
  16. {
  17. class DLL_EXPORT VisitHero : public CGoal<VisitHero>
  18. {
  19. public:
  20. VisitHero()
  21. : CGoal(Goals::VISIT_HERO)
  22. {
  23. }
  24. VisitHero(int hid)
  25. : CGoal(Goals::VISIT_HERO)
  26. {
  27. objid = hid;
  28. priority = 4;
  29. }
  30. TGoalVec getAllPossibleSubgoals() override
  31. {
  32. return TGoalVec();
  33. }
  34. TSubgoal whatToDoToAchieve() override;
  35. bool fulfillsMe(TSubgoal goal) override;
  36. std::string completeMessage() const override;
  37. bool operator==(const VisitHero & other) const override;
  38. };
  39. }