CExchangeController.h 831 B

12345678910111213141516171819202122232425262728
  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 "../lib/mapObjects/CGHeroInstance.h"
  12. class CExchangeController
  13. {
  14. public:
  15. CExchangeController(ObjectInstanceID hero1, ObjectInstanceID hero2);
  16. void swapArmy();
  17. void moveArmy(bool leftToRight, std::optional<SlotID> heldSlot);
  18. void moveStack(bool leftToRight, SlotID sourceSlot);
  19. void moveSingleStackCreature(bool leftToRight, SlotID sourceSlot, bool forceEmptySlotTarget);
  20. void swapArtifacts(bool equipped, bool baclpack);
  21. void moveArtifacts(bool leftToRight, bool equipped, bool baclpack);
  22. private:
  23. const CGHeroInstance * left;
  24. const CGHeroInstance * right;
  25. };