mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-25 22:42:04 +02:00
refactoring
This commit is contained in:
30
client/widgets/CExchangeController.h
Normal file
30
client/widgets/CExchangeController.h
Normal file
@@ -0,0 +1,30 @@
|
||||
/*
|
||||
* CExchangeController.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 "../windows/CWindowObject.h"
|
||||
#include "CWindowWithArtifacts.h"
|
||||
|
||||
class CCallback;
|
||||
|
||||
class CExchangeController
|
||||
{
|
||||
public:
|
||||
CExchangeController(ObjectInstanceID hero1, ObjectInstanceID hero2);
|
||||
void swapArmy();
|
||||
void moveArmy(bool leftToRight, std::optional<SlotID> heldSlot);
|
||||
void moveStack(bool leftToRight, SlotID sourceSlot);
|
||||
void swapArtifacts(bool equipped, bool baclpack);
|
||||
void moveArtifacts(bool leftToRight, bool equipped, bool baclpack);
|
||||
|
||||
private:
|
||||
const CGHeroInstance * left;
|
||||
const CGHeroInstance * right;
|
||||
};
|
||||
Reference in New Issue
Block a user