diff options
author | scratko <m@scratko.xyz> | 2024-11-18 18:01:32 +0300 |
---|---|---|
committer | scratko <m@scratko.xyz> | 2024-11-18 20:36:37 +0300 |
commit | 503e7350fa3d8065e2f4814181664382154dc702 (patch) | |
tree | 18ec4fd2dc2d55e286b164c79f673b9e67e4c1bd /puzzle.hpp | |
parent | 7fea2267e78de935af6010d5ac7300e51f471601 (diff) | |
download | picture-puzzle-503e7350fa3d8065e2f4814181664382154dc702.tar.gz picture-puzzle-503e7350fa3d8065e2f4814181664382154dc702.tar.bz2 picture-puzzle-503e7350fa3d8065e2f4814181664382154dc702.zip |
Random image selection
Added a dialog box about.
Checks if the selected file is correct.
Diffstat (limited to 'puzzle.hpp')
-rw-r--r-- | puzzle.hpp | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -38,14 +38,15 @@ private: coordinates empty_box; std::vector<std::unique_ptr<Puzzle>> puzzles; Fl_Window *win; + std::string cur_directory; GameParams(Fl_Window *a_win = nullptr) : win(a_win) {} - void CalculateStandardPuzzlePos(); void ResetFreePuzzles(); void NextUntestedPuzzles(); bool IsSolvability(); void CreateNewPuzzles(); + void SelectRandomPicture(); friend class PuzzleGame; friend class ASearch; |