CHeroBackpackWindow.h 676 B

12345678910111213141516171819202122232425262728
  1. /*
  2. * CHeroBackpackWindow.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 "../widgets/CWindowWithArtifacts.h"
  12. #include "CWindowObject.h"
  13. class CFilledTexture;
  14. class CHeroBackpackWindow : public CWindowObject, public CWindowWithArtifacts
  15. {
  16. public:
  17. CHeroBackpackWindow(const CGHeroInstance * hero);
  18. private:
  19. std::shared_ptr<CArtifactsOfHeroBackpack> arts;
  20. std::shared_ptr<CButton> quitButton;
  21. std::shared_ptr<CFilledTexture> stretchedBackground;
  22. void showAll(Canvas &to) override;
  23. };