VisitHero.cpp 709 B

1234567891011121314151617181920212223242526272829
  1. /*
  2. * VisitHero.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 "VisitHero.h"
  12. #include "Invalid.h"
  13. #include "../VCAI.h"
  14. #include "../AIUtility.h"
  15. #include "../AIhelper.h"
  16. #include "../FuzzyHelper.h"
  17. #include "../../../lib/mapping/CMap.h" //for victory conditions
  18. extern boost::thread_specific_ptr<CCallback> cb;
  19. extern boost::thread_specific_ptr<VCAI> ai;
  20. extern FuzzyHelper * fh;
  21. using namespace Goals;
  22. bool VisitHero::operator==(const VisitHero & other) const
  23. {
  24. return other.hero.h == hero.h && other.objid == objid;
  25. }