back to scratko.xyz
aboutsummaryrefslogtreecommitdiff
path: root/puzzle.hpp
diff options
context:
space:
mode:
authorscratko <m@scratko.xyz>2024-11-18 18:01:32 +0300
committerscratko <m@scratko.xyz>2024-11-18 20:36:37 +0300
commit503e7350fa3d8065e2f4814181664382154dc702 (patch)
tree18ec4fd2dc2d55e286b164c79f673b9e67e4c1bd /puzzle.hpp
parent7fea2267e78de935af6010d5ac7300e51f471601 (diff)
downloadpicture-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.hpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/puzzle.hpp b/puzzle.hpp
index 9370763..e44efd4 100644
--- a/puzzle.hpp
+++ b/puzzle.hpp
@@ -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;