CPuzzleWindow.h 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. /*
  2. * CPuzzleWindow.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 "CWindowObject.h"
  12. #include "../../lib/int3.h"
  13. class CLabel;
  14. class CButton;
  15. class CResDataBar;
  16. class PuzzleMapView;
  17. class GraphicalPrimitiveCanvas;
  18. /// Puzzle screen which gets uncovered when you visit obilisks
  19. class CPuzzleWindow : public CWindowObject
  20. {
  21. private:
  22. int3 grailPos;
  23. std::shared_ptr<PuzzleMapView> mapView;
  24. std::shared_ptr<CPicture> logo;
  25. std::shared_ptr<GraphicalPrimitiveCanvas> border;
  26. std::shared_ptr<CLabel> title;
  27. std::shared_ptr<CButton> quitb;
  28. std::shared_ptr<CResDataBar> resDataBar;
  29. std::vector<std::shared_ptr<CPicture>> piecesToRemove;
  30. std::vector<std::shared_ptr<CPicture>> visiblePieces;
  31. ui8 currentAlpha;
  32. public:
  33. void showAll(Canvas & to) override;
  34. void show(Canvas & to) override;
  35. CPuzzleWindow(const int3 & grailPos, double discoveredRatio);
  36. };