CArtifactsOfHeroBackpack.h 882 B

1234567891011121314151617181920212223242526272829303132333435
  1. /*
  2. * CArtifactsOfHeroBackpack.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 "CArtifactsOfHeroBase.h"
  12. VCMI_LIB_NAMESPACE_BEGIN
  13. struct ArtifactLocation;
  14. VCMI_LIB_NAMESPACE_END
  15. class CArtifactsOfHeroBackpack : public CArtifactsOfHeroBase
  16. {
  17. public:
  18. using DestroyHandler = std::function<void()>;
  19. CArtifactsOfHeroBackpack(const Point & position, DestroyHandler destroyThisCallback);
  20. void swapArtifacts(const ArtifactLocation & srcLoc, const ArtifactLocation & dstLoc);
  21. void pickUpArtifact(CHeroArtPlace & artPlace);
  22. void destroyThis();
  23. private:
  24. DestroyHandler destroyThisCallback;
  25. const size_t HERO_BACKPACK_WINDOW_SLOT_COLUMNS = 8;
  26. const size_t HERO_BACKPACK_WINDOW_SLOT_LINES = 8;
  27. };