back to scratko.xyz
aboutsummaryrefslogtreecommitdiff
path: root/puzzle.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'puzzle.hpp')
-rw-r--r--puzzle.hpp12
1 files changed, 7 insertions, 5 deletions
diff --git a/puzzle.hpp b/puzzle.hpp
index 11c5fae..09660c8 100644
--- a/puzzle.hpp
+++ b/puzzle.hpp
@@ -43,6 +43,9 @@ private:
coordinates empty_box;
std::vector<std::unique_ptr<Puzzle>> puzzles;
Fl_Window *win;
+ /*
+ * selecting the current directory where the user image is stored
+ */
std::string cur_directory;
GameParams(Fl_Window *a_win = nullptr)
@@ -55,11 +58,6 @@ private:
void CreateNewPuzzles();
void SelectRandomPicture();
Fl_PNG_Image *LoadPictureParts(std::unique_ptr<Puzzle>& tmp_puzzle);
-
- friend class PuzzleGame;
- friend class ASearch;
- friend void press_button_callback(Fl_Widget*, void*);
- friend void solve_problem_callback(Fl_Widget*, void*);
public:
void SetXYEmptyBox(int x, int y) { empty_box.x = x; empty_box. y = y; }
coordinates GetXYEmptyBox() { return empty_box; }
@@ -70,6 +68,10 @@ public:
gi->CalculateStandardPuzzlePos();
return gi;
}
+ friend class PuzzleGame;
+ friend class ASearch;
+ friend void press_button_callback(Fl_Widget*, void*);
+ friend void solve_problem_callback(Fl_Widget*, void*);
};
#endif