1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-16 10:19:47 +02:00
vcmi/client/widgets/markets/CArtifactsSelling.h

36 lines
1016 B
C++
Raw Normal View History

2024-02-25 22:58:53 +02:00
/*
* 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"
2024-03-02 20:30:29 +02:00
#include "CMarketBase.h"
2024-02-25 22:58:53 +02:00
2024-03-20 13:28:19 +02:00
class CArtifactsSelling : public CResourcesBuying, public CMarketTraderText
2024-02-25 22:58:53 +02:00
{
public:
CArtifactsSelling(const IMarket * market, const CGHeroInstance * hero);
2024-02-29 22:33:12 +02:00
void deselect() override;
2024-02-25 22:58:53 +02:00
void makeDeal() override;
void updateShowcases() override;
2024-03-02 20:30:29 +02:00
void update() override;
2024-02-25 22:58:53 +02:00
std::shared_ptr<CArtifactsOfHeroMarket> getAOHset() const;
private:
std::shared_ptr<CArtifactsOfHeroMarket> heroArts;
std::shared_ptr<CLabel> bidSelectedSubtitle;
2024-02-27 13:39:50 +02:00
std::shared_ptr<CTradeableItem> bidSelectedSlot;
2024-02-29 22:33:12 +02:00
ArtifactPosition selectedHeroSlot;
2024-02-25 22:58:53 +02:00
2024-03-20 13:28:19 +02:00
CMarketBase::MarketShowcasesParams getShowcasesParams() const override;
void updateSubtitles();
void highlightingChanged() override;
2024-03-20 13:28:19 +02:00
std::string getTraderText() override;
2024-02-25 22:58:53 +02:00
};