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:
|
2024-08-12 16:38:30 +02:00
|
|
|
CArtifactsSelling(const IMarket * market, const CGHeroInstance * hero, const std::string & title);
|
2024-02-29 22:33:12 +02:00
|
|
|
void deselect() override;
|
2024-02-25 22:58:53 +02:00
|
|
|
void makeDeal() override;
|
2024-03-19 13:53:23 +02:00
|
|
|
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();
|
2024-03-19 13:53:23 +02:00
|
|
|
void highlightingChanged() override;
|
2024-03-20 13:28:19 +02:00
|
|
|
std::string getTraderText() override;
|
2024-02-25 22:58:53 +02:00
|
|
|
};
|