CArtifactsOfHeroMain.cpp 916 B

1234567891011121314151617181920212223242526272829303132
  1. /*
  2. * CArtifactsOfHeroMain.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 "CArtifactsOfHeroMain.h"
  12. #include "../CPlayerInterface.h"
  13. #include "../../lib/mapObjects/CGHeroInstance.h"
  14. #include "../../CCallback.h"
  15. #include "../../lib/networkPacks/ArtifactLocation.h"
  16. CArtifactsOfHeroMain::CArtifactsOfHeroMain(const Point & position)
  17. {
  18. init(
  19. std::bind(&CArtifactsOfHeroBase::clickPrassedArtPlace, this, _1, _2),
  20. std::bind(&CArtifactsOfHeroBase::showPopupArtPlace, this, _1, _2),
  21. position,
  22. std::bind(&CArtifactsOfHeroBase::scrollBackpack, this, _1));
  23. addGestureCallback(std::bind(&CArtifactsOfHeroBase::gestureArtPlace, this, _1, _2));
  24. }
  25. CArtifactsOfHeroMain::~CArtifactsOfHeroMain()
  26. {
  27. putBackPickedArtifact();
  28. }