mirror of
https://github.com/vcmi/vcmi.git
synced 2024-12-28 23:06:24 +02:00
36 lines
1016 B
C++
36 lines
1016 B
C++
/*
|
|
* 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<CArtifactsOfHeroMarket> getAOHset() const;
|
|
|
|
private:
|
|
std::shared_ptr<CArtifactsOfHeroMarket> heroArts;
|
|
std::shared_ptr<CLabel> bidSelectedSubtitle;
|
|
std::shared_ptr<CTradeableItem> bidSelectedSlot;
|
|
ArtifactPosition selectedHeroSlot;
|
|
|
|
CMarketBase::MarketShowcasesParams getShowcasesParams() const override;
|
|
void updateSubtitles();
|
|
void highlightingChanged() override;
|
|
std::string getTraderText() override;
|
|
};
|