HeroExchange.h 776 B

12345678910111213141516171819202122232425262728293031323334
  1. /*
  2. * HeroExchange.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 "../Goals/CGoal.h"
  12. #include "../Pathfinding/AINodeStorage.h"
  13. namespace Goals
  14. {
  15. class DLL_EXPORT HeroExchange : public CGoal<HeroExchange>
  16. {
  17. private:
  18. AIPath exchangePath;
  19. public:
  20. HeroExchange(const CGHeroInstance * targetHero, const AIPath & exchangePath)
  21. : CGoal(Goals::HERO_EXCHANGE), exchangePath(exchangePath)
  22. {
  23. sethero(targetHero);
  24. }
  25. virtual bool operator==(const HeroExchange & other) const override;
  26. virtual std::string toString() const override;
  27. uint64_t getReinforcementArmyStrength() const;
  28. };
  29. }