2
0

ISpecialAction.h 764 B

12345678910111213141516171819202122232425262728293031323334353637
  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. VCMI_LIB_NAMESPACE_BEGIN
  14. struct PathNodeInfo;
  15. struct CDestinationNodeInfo;
  16. VCMI_LIB_NAMESPACE_END
  17. struct AIPathNode;
  18. class ISpecialAction
  19. {
  20. public:
  21. virtual ~ISpecialAction() = default;
  22. virtual Goals::TSubgoal whatToDo(const HeroPtr & hero) const = 0;
  23. virtual void applyOnDestination(
  24. const CGHeroInstance * hero,
  25. CDestinationNodeInfo & destination,
  26. const PathNodeInfo & source,
  27. AIPathNode * dstMode,
  28. const AIPathNode * srcNode) const
  29. {
  30. }
  31. };