ExploreNeighbourTile.h 853 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. /*
  2. * ExploreNeighbourTile.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 NKAI
  13. {
  14. class AIGateway;
  15. class FuzzyHelper;
  16. namespace Goals
  17. {
  18. class DLL_EXPORT ExploreNeighbourTile : public ElementarGoal<ExploreNeighbourTile>
  19. {
  20. private:
  21. int tilesToExplore;
  22. public:
  23. ExploreNeighbourTile(const CGHeroInstance * hero, int amount)
  24. : ElementarGoal(Goals::EXPLORE_NEIGHBOUR_TILE)
  25. {
  26. tilesToExplore = amount;
  27. sethero(hero);
  28. }
  29. bool operator==(const ExploreNeighbourTile & other) const override;
  30. void accept(AIGateway * ai) override;
  31. std::string toString() const override;
  32. private:
  33. //TSubgoal decomposeSingle() const override;
  34. };
  35. }
  36. }