TownPortalAction.h 711 B

12345678910111213141516171819202122232425262728293031323334
  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 "ISpecialAction.h"
  12. #include "../../../../lib/mapObjects/MapObjects.h"
  13. #include "../../Goals/AdventureSpellCast.h"
  14. namespace AIPathfinding
  15. {
  16. class TownPortalAction : public ISpecialAction
  17. {
  18. private:
  19. const CGTownInstance * target;
  20. SpellID spellToUse;
  21. public:
  22. TownPortalAction(const CGTownInstance * target, SpellID spellToUse)
  23. :target(target)
  24. ,spellToUse(spellToUse)
  25. {
  26. }
  27. Goals::TSubgoal whatToDo(const HeroPtr & hero) const override;
  28. };
  29. }