CArtifactsOfHeroMarket.h 642 B

12345678910111213141516171819202122
  1. /*
  2. * CArtifactsOfHeroMarket.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 "CArtifactsOfHeroBase.h"
  12. class CArtifactsOfHeroMarket : public CArtifactsOfHeroBase
  13. {
  14. public:
  15. std::function<void(const CArtPlace*)> onSelectArtCallback;
  16. std::function<void()> onClickNotTradableCallback;
  17. CArtifactsOfHeroMarket(const Point & position, const int selectionWidth);
  18. void clickPressedArtPlace(CComponentHolder & artPlace, const Point & cursorPosition) override;
  19. };