BattleAction.h 599 B

12345678910111213141516171819202122232425262728293031323334353637
  1. /*
  2. * BattleAction.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 "SpecialAction.h"
  12. namespace NKAI
  13. {
  14. namespace AIPathfinding
  15. {
  16. class BattleAction : public SpecialAction
  17. {
  18. private:
  19. const int3 targetTile;
  20. public:
  21. BattleAction(const int3 targetTile)
  22. :targetTile(targetTile)
  23. {
  24. }
  25. void execute(AIGateway * ai, const CGHeroInstance * hero) const override;
  26. std::string toString() const override;
  27. };
  28. }
  29. }