CExchangeController.h 783 B

123456789101112131415161718192021222324252627282930
  1. /*
  2. * CExchangeController.h, part of VCMI engine
  3. *
  4. * Authors: listed in file AUTHORS in main folder
  5. *
  6. * License: GNU General Public License v2.0 or later
  7. * Full text of license available in license.txt file, in main folder
  8. *
  9. */
  10. #pragma once
  11. #include "../windows/CWindowObject.h"
  12. #include "CWindowWithArtifacts.h"
  13. class CCallback;
  14. class CExchangeController
  15. {
  16. public:
  17. CExchangeController(ObjectInstanceID hero1, ObjectInstanceID hero2);
  18. void swapArmy();
  19. void moveArmy(bool leftToRight, std::optional<SlotID> heldSlot);
  20. void moveStack(bool leftToRight, SlotID sourceSlot);
  21. void swapArtifacts(bool equipped, bool baclpack);
  22. void moveArtifacts(bool leftToRight, bool equipped, bool baclpack);
  23. private:
  24. const CGHeroInstance * left;
  25. const CGHeroInstance * right;
  26. };