TownPortalAction.h 778 B

12345678910111213141516171819202122232425262728293031323334353637383940
  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. SpellID usedSpell;
  23. public:
  24. TownPortalAction(const CGTownInstance * target, SpellID usedSpell)
  25. :target(target)
  26. ,usedSpell(usedSpell)
  27. {
  28. }
  29. void execute(AIGateway * ai, const CGHeroInstance * hero) const override;
  30. std::string toString() const override;
  31. };
  32. }
  33. }