Explore.h 776 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. /*
  2. * Explore.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 Explore : public CGoal<Explore>
  18. {
  19. public:
  20. Explore()
  21. : CGoal(Goals::EXPLORE)
  22. {
  23. priority = 1;
  24. }
  25. Explore(HeroPtr h)
  26. : CGoal(Goals::EXPLORE)
  27. {
  28. hero = h;
  29. priority = 1;
  30. }
  31. TGoalVec getAllPossibleSubgoals() override;
  32. TSubgoal whatToDoToAchieve() override;
  33. std::string completeMessage() const override;
  34. bool fulfillsMe(TSubgoal goal) override;
  35. virtual bool operator==(const Explore & other) const override;
  36. };
  37. }