GetArtOfType.cpp 659 B

1234567891011121314151617181920212223242526272829
  1. /*
  2. * GetArtOfType.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 "GetArtOfType.h"
  12. #include "../VCAI.h"
  13. #include "../AIUtility.h"
  14. extern boost::thread_specific_ptr<CCallback> cb;
  15. extern boost::thread_specific_ptr<VCAI> ai;
  16. using namespace Goals;
  17. bool GetArtOfType::operator==(const GetArtOfType & other) const
  18. {
  19. return other.hero.h == hero.h && other.objid == objid;
  20. }
  21. //
  22. //TSubgoal GetArtOfType::whatToDoToAchieve()
  23. //{
  24. // return sptr(FindObj(Obj::ARTIFACT, aid));
  25. //}