SpecialAction.cpp 575 B

12345678910111213141516171819202122232425
  1. /*
  2. * SpecialAction.cpp, 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 "../../VCAI.h"
  13. #include "../../Goals/CGoal.h"
  14. Goals::TSubgoal SpecialAction::decompose(const CGHeroInstance * hero) const
  15. {
  16. return Goals::sptr(Goals::Invalid());
  17. }
  18. void SpecialAction::execute(const CGHeroInstance * hero) const
  19. {
  20. throw cannotFulfillGoalException("Can not execute " + toString());
  21. }