VisitTile.h 800 B

12345678910111213141516171819202122232425262728293031323334353637
  1. /*
  2. * VisitTile.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 VisitTile : public CGoal<VisitTile>
  18. //tile, in conjunction with hero elementar; assumes tile is reachable
  19. {
  20. public:
  21. VisitTile() {} // empty constructor not allowed
  22. VisitTile(int3 Tile)
  23. : CGoal(Goals::VISIT_TILE)
  24. {
  25. tile = Tile;
  26. priority = 5;
  27. }
  28. TGoalVec getAllPossibleSubgoals() override;
  29. TSubgoal whatToDoToAchieve() override;
  30. std::string completeMessage() const override;
  31. bool operator==(const VisitTile & other) const override;
  32. };
  33. }