2024-02-21 20:48:14 +02:00
|
|
|
/*
|
|
|
|
* CTransferResources.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 "CTradeBase.h"
|
|
|
|
|
2024-02-29 12:02:39 +02:00
|
|
|
class CTransferResources : public CResourcesSelling
|
2024-02-21 20:48:14 +02:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
CTransferResources(const IMarket * market, const CGHeroInstance * hero);
|
|
|
|
void makeDeal() override;
|
|
|
|
|
|
|
|
private:
|
2024-02-29 12:02:39 +02:00
|
|
|
CTradeBase::SelectionParams getSelectionParams() const override;
|
2024-02-21 20:48:14 +02:00
|
|
|
void onOfferSliderMoved(int newVal);
|
|
|
|
void onSlotClickPressed(const std::shared_ptr<CTradeableItem> & newSlot, std::shared_ptr<CTradeableItem> & hCurSlot);
|
|
|
|
};
|