BuyArmyAction.h 584 B

12345678910111213141516171819202122232425262728293031
  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. #include "../../../../lib/CGameState.h"
  13. namespace AIPathfinding
  14. {
  15. class BuyArmyAction : public SpecialAction
  16. {
  17. private:
  18. public:
  19. bool canAct(const AIPathNode * source) const override
  20. {
  21. return true;
  22. }
  23. void execute(const CGHeroInstance * hero) const override;
  24. std::string toString() const override;
  25. };
  26. }