BuildBoat.h 792 B

12345678910111213141516171819202122232425262728293031323334353637
  1. /*
  2. * BuildBoat.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 Goals
  13. {
  14. class DLL_EXPORT BuildBoat : public CGoal<BuildBoat>
  15. {
  16. private:
  17. const IShipyard * shipyard;
  18. public:
  19. BuildBoat(const IShipyard * shipyard)
  20. : CGoal(Goals::BUILD_BOAT), shipyard(shipyard)
  21. {
  22. priority = 0;
  23. }
  24. TGoalVec getAllPossibleSubgoals() override
  25. {
  26. return TGoalVec();
  27. }
  28. TSubgoal whatToDoToAchieve() override;
  29. void accept(VCAI * ai) override;
  30. std::string name() const override;
  31. std::string completeMessage() const override;
  32. bool operator==(const BuildBoat & other) const override;
  33. };
  34. }