GetArtOfType.h 738 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. /*
  2. * GetArtOfType.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 GetArtOfType : public CGoal<GetArtOfType>
  18. {
  19. public:
  20. GetArtOfType()
  21. : CGoal(Goals::GET_ART_TYPE)
  22. {
  23. }
  24. GetArtOfType(int type)
  25. : CGoal(Goals::GET_ART_TYPE)
  26. {
  27. aid = type;
  28. priority = 2;
  29. }
  30. TGoalVec getAllPossibleSubgoals() override
  31. {
  32. return TGoalVec();
  33. }
  34. TSubgoal whatToDoToAchieve() override;
  35. virtual bool operator==(const GetArtOfType & other) const override;
  36. };
  37. }