BuyArmyAction.h 604 B

12345678910111213141516171819202122232425262728293031323334
  1. /*
  2. * BuyArmyAction.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 BuyArmyAction : public SpecialAction
  17. {
  18. private:
  19. public:
  20. bool canAct(const Nullkiller * ai, const AIPathNode * source) const override
  21. {
  22. return true;
  23. }
  24. void execute(AIGateway * ai, const CGHeroInstance * hero) const override;
  25. std::string toString() const override;
  26. };
  27. }
  28. }