TownPortalAction.h 705 B

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