VisitTile.h 673 B

1234567891011121314151617181920212223242526272829303132333435
  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. #error not used
  12. #include "CGoal.h"
  13. struct HeroPtr;
  14. class VCAI;
  15. class FuzzyHelper;
  16. namespace Goals
  17. {
  18. class DLL_EXPORT VisitTile : public CGoal<VisitTile>
  19. //tile, in conjunction with hero elementar; assumes tile is reachable
  20. {
  21. public:
  22. VisitTile() {} // empty constructor not allowed
  23. VisitTile(int3 Tile)
  24. : CGoal(Goals::VISIT_TILE)
  25. {
  26. tile = Tile;
  27. }
  28. virtual bool operator==(const VisitTile & other) const override;
  29. };
  30. }