TownPortalAction.h 650 B

1234567891011121314151617181920212223242526272829303132
  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. public:
  21. TownPortalAction(const CGTownInstance * target)
  22. :target(target)
  23. {
  24. }
  25. virtual Goals::TSubgoal whatToDo(const HeroPtr & hero) const override;
  26. };
  27. }