GatherTroops.h 699 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. /*
  2. * GatherTroops.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. struct HeroPtr;
  13. class VCAI;
  14. class FuzzyHelper;
  15. namespace Goals
  16. {
  17. class DLL_EXPORT GatherTroops : public CGoal<GatherTroops>
  18. {
  19. public:
  20. GatherTroops()
  21. : CGoal(Goals::GATHER_TROOPS)
  22. {
  23. }
  24. GatherTroops(int type, int val)
  25. : CGoal(Goals::GATHER_TROOPS)
  26. {
  27. objid = type;
  28. value = val;
  29. }
  30. virtual bool operator==(const GatherTroops & other) const override;
  31. private:
  32. int getCreaturesCount(const CArmedInstance * army);
  33. };
  34. }