GatherArmy.h 769 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. /*
  2. * GatherArmy.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 "CGoal.h"
  12. namespace Nullkiller
  13. {
  14. struct HeroPtr;
  15. class AIGateway;
  16. class FuzzyHelper;
  17. namespace Goals
  18. {
  19. class DLL_EXPORT GatherArmy : public CGoal<GatherArmy>
  20. {
  21. public:
  22. GatherArmy()
  23. : CGoal(Goals::GATHER_ARMY)
  24. {
  25. }
  26. GatherArmy(int val)
  27. : CGoal(Goals::GATHER_ARMY)
  28. {
  29. value = val;
  30. priority = 2.5;
  31. }
  32. TGoalVec getAllPossibleSubgoals() override;
  33. TSubgoal whatToDoToAchieve() override;
  34. std::string completeMessage() const override;
  35. bool operator==(const GatherArmy & other) const override;
  36. };
  37. }
  38. }