BuildBoat.h 645 B

12345678910111213141516171819202122232425262728293031
  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 ElementarGoal<BuildBoat>
  15. {
  16. private:
  17. const IShipyard * shipyard;
  18. public:
  19. BuildBoat(const IShipyard * shipyard)
  20. : ElementarGoal(Goals::BUILD_BOAT), shipyard(shipyard)
  21. {
  22. }
  23. void accept(AIGateway * ai) override;
  24. std::string toString() const override;
  25. virtual bool operator==(const BuildBoat & other) const override;
  26. };
  27. }