From 503e7350fa3d8065e2f4814181664382154dc702 Mon Sep 17 00:00:00 2001 From: scratko Date: Mon, 18 Nov 2024 18:01:32 +0300 Subject: Random image selection Added a dialog box about. Checks if the selected file is correct. --- puzzle.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'puzzle.hpp') 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> 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; -- cgit v1.2.3