BuildingBehavior.h 667 B

12345678910111213141516171819202122232425262728293031323334
  1. /*
  2. * BuildingBehavior.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 "lib/VCMI_Lib.h"
  12. #include "../AIUtility.h"
  13. #include "../Goals/CGoal.h"
  14. namespace Goals
  15. {
  16. class BuildingBehavior : public CGoal<BuildingBehavior>
  17. {
  18. public:
  19. BuildingBehavior()
  20. :CGoal(Goals::BUILD)
  21. {
  22. }
  23. virtual Goals::TGoalVec decompose() const override;
  24. virtual std::string toString() const override;
  25. virtual bool operator==(const BuildingBehavior & other) const override
  26. {
  27. return true;
  28. }
  29. };
  30. }