BuildBoat.h 658 B

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