UnlockCluster.cpp 723 B

12345678910111213141516171819202122232425262728293031323334
  1. /*
  2. * FindObj.cpp, 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. #include "StdInc.h"
  11. #include "UnlockCluster.h"
  12. #include "../AIGateway.h"
  13. #include "../Engine/Nullkiller.h"
  14. #include "../AIUtility.h"
  15. namespace NKAI
  16. {
  17. extern boost::thread_specific_ptr<CCallback> cb;
  18. extern boost::thread_specific_ptr<AIGateway> ai;
  19. using namespace Goals;
  20. bool UnlockCluster::operator==(const UnlockCluster & other) const
  21. {
  22. return other.tile == tile;
  23. }
  24. std::string UnlockCluster::toString() const
  25. {
  26. return "Unlock Cluster " + cluster->blocker->getObjectName() + tile.toString();
  27. }
  28. }