ClusterBehavior.h 823 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. /*
  2. * RecruitHeroBehavior.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/GameLibrary.h"
  12. #include "../Goals/CGoal.h"
  13. #include "../AIUtility.h"
  14. namespace NKAI
  15. {
  16. struct ObjectCluster;
  17. namespace Goals
  18. {
  19. class ClusterBehavior : public CGoal<ClusterBehavior>
  20. {
  21. public:
  22. ClusterBehavior()
  23. :CGoal(CLUSTER_BEHAVIOR)
  24. {
  25. }
  26. TGoalVec decompose(const Nullkiller * ai) const override;
  27. std::string toString() const override;
  28. bool operator==(const ClusterBehavior & other) const override
  29. {
  30. return true;
  31. }
  32. private:
  33. Goals::TGoalVec decomposeCluster(const Nullkiller * ai, std::shared_ptr<ObjectCluster> cluster) const;
  34. };
  35. }
  36. }