CExchangeController.h 849 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 "../lib/mapObjects/CGHeroInstance.h"
  12. class CCallback;
  13. class CExchangeController
  14. {
  15. public:
  16. CExchangeController(ObjectInstanceID hero1, ObjectInstanceID hero2);
  17. void swapArmy();
  18. void moveArmy(bool leftToRight, std::optional<SlotID> heldSlot);
  19. void moveStack(bool leftToRight, SlotID sourceSlot);
  20. void moveSingleStackCreature(bool leftToRight, SlotID sourceSlot, bool forceEmptySlotTarget);
  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. };