/* * CArtifactsSelling.h, part of VCMI engine * * Authors: listed in file AUTHORS in main folder * * License: GNU General Public License v2.0 or later * Full text of license available in license.txt file, in main folder * */ #pragma once #include "../CArtifactsOfHeroMarket.h" #include "CMarketBase.h" class CArtifactsSelling : public CResourcesBuying, public CMarketTraderText { public: CArtifactsSelling(const IMarket * market, const CGHeroInstance * hero); void deselect() override; void makeDeal() override; void updateShowcases() override; void update() override; std::shared_ptr getAOHset() const; private: std::shared_ptr heroArts; std::shared_ptr bidSelectedSubtitle; std::shared_ptr bidSelectedSlot; ArtifactPosition selectedHeroSlot; CMarketBase::MarketShowcasesParams getShowcasesParams() const override; void updateSubtitles(); void highlightingChanged() override; std::string getTraderText() override; };