2024-02-19 23:40:43 +02:00
|
|
|
/*
|
|
|
|
* CMarketResources.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
|
|
|
|
|
2024-03-02 20:30:29 +02:00
|
|
|
#include "CMarketBase.h"
|
2024-02-19 23:40:43 +02:00
|
|
|
|
2024-03-02 20:30:29 +02:00
|
|
|
class CMarketResources : public CResourcesSelling, public CResourcesBuying, public CMarketSlider
|
2024-02-19 23:40:43 +02:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
CMarketResources(const IMarket * market, const CGHeroInstance * hero);
|
2024-03-02 20:30:29 +02:00
|
|
|
void deselect() override;
|
2024-02-19 23:40:43 +02:00
|
|
|
void makeDeal() override;
|
|
|
|
|
|
|
|
private:
|
2024-03-02 20:30:29 +02:00
|
|
|
CMarketBase::SelectionParams getSelectionParams() const override;
|
2024-03-19 13:53:23 +02:00
|
|
|
void highlightingChanged() override;
|
2024-02-19 23:40:43 +02:00
|
|
|
void updateSubtitles();
|
|
|
|
};
|