HeroExchange.h 797 B

1234567891011121314151617181920212223242526272829303132333435363738
  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 NKAI
  14. {
  15. namespace Goals
  16. {
  17. class DLL_EXPORT HeroExchange : public CGoal<HeroExchange>
  18. {
  19. private:
  20. AIPath exchangePath;
  21. public:
  22. HeroExchange(const CGHeroInstance * targetHero, const AIPath & exchangePath)
  23. : CGoal(Goals::HERO_EXCHANGE), exchangePath(exchangePath)
  24. {
  25. sethero(targetHero);
  26. }
  27. virtual bool operator==(const HeroExchange & other) const override;
  28. virtual std::string toString() const override;
  29. uint64_t getReinforcementArmyStrength() const;
  30. };
  31. }
  32. }