ISpecialAction.h 664 B

1234567891011121314151617181920212223242526272829303132
  1. /*
  2. * ISpecialAction.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 "../../AIUtility.h"
  12. #include "../../Goals/AbstractGoal.h"
  13. struct AIPathNode;
  14. class ISpecialAction
  15. {
  16. public:
  17. virtual ~ISpecialAction() = default;
  18. virtual Goals::TSubgoal whatToDo(const HeroPtr & hero) const = 0;
  19. virtual void applyOnDestination(
  20. const CGHeroInstance * hero,
  21. CDestinationNodeInfo & destination,
  22. const PathNodeInfo & source,
  23. AIPathNode * dstMode,
  24. const AIPathNode * srcNode) const
  25. {
  26. }
  27. };