TownPortalAction.h 755 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. /*
  2. * TownPortalAction.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 "SpecialAction.h"
  12. #include "../../../../lib/mapping/CMap.h"
  13. #include "../../../../lib/mapObjects/MapObjects.h"
  14. #include "../../Goals/AdventureSpellCast.h"
  15. namespace NKAI
  16. {
  17. namespace AIPathfinding
  18. {
  19. class TownPortalAction : public SpecialAction
  20. {
  21. private:
  22. const CGTownInstance * target;
  23. public:
  24. TownPortalAction(const CGTownInstance * target)
  25. :target(target)
  26. {
  27. }
  28. virtual void execute(const CGHeroInstance * hero) const override;
  29. virtual std::string toString() const override;
  30. };
  31. }
  32. }