DigAtTile.h 745 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. /*
  2. * DigAtTile.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 DigAtTile : public CGoal<DigAtTile>
  18. //elementar with hero on tile
  19. {
  20. public:
  21. DigAtTile()
  22. : CGoal(Goals::DIG_AT_TILE)
  23. {
  24. }
  25. DigAtTile(int3 Tile)
  26. : CGoal(Goals::DIG_AT_TILE)
  27. {
  28. tile = Tile;
  29. priority = 20;
  30. }
  31. TGoalVec getAllPossibleSubgoals() override
  32. {
  33. return TGoalVec();
  34. }
  35. TSubgoal whatToDoToAchieve() override;
  36. bool operator==(const DigAtTile & other) const override;
  37. };
  38. }