back to scratko.xyz
aboutsummaryrefslogtreecommitdiff
path: root/gameplay.hpp
diff options
context:
space:
mode:
authorscratko <m@scratko.xyz>2025-07-25 17:04:21 +0300
committerscratko <m@scratko.xyz>2025-08-13 18:59:42 +0300
commit191a2d7cd56dde37d7f9fbdd1bcd2bb80ab4590d (patch)
tree404975753ee83eaf15f1575441477b209b65dd33 /gameplay.hpp
parentac9a06b04144023e87d1a504cfe5598e7cf3d7b4 (diff)
downloadpicture-puzzle-191a2d7cd56dde37d7f9fbdd1bcd2bb80ab4590d.tar.gz
picture-puzzle-191a2d7cd56dde37d7f9fbdd1bcd2bb80ab4590d.tar.bz2
picture-puzzle-191a2d7cd56dde37d7f9fbdd1bcd2bb80ab4590d.zip
July updateHEADmaster
Added const qualifiers is_next_to_empty_box() became visible to other files(). The size of the main window has been changed. Checking whether the A* algorithm has been launched before starting a new game or the same A* algorithm. Fixed indentation in lambda expressions. The initial node is added to open_queue without additional creation of dynamic memory (the address of the object field is taken). Fixed PQ_cont.erase(). IsNearEmptyBox was removed(). EqualNode moved to the Node class.
Diffstat (limited to 'gameplay.hpp')
-rw-r--r--gameplay.hpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/gameplay.hpp b/gameplay.hpp
index 0069772..9c26f5b 100644
--- a/gameplay.hpp
+++ b/gameplay.hpp
@@ -4,6 +4,8 @@
#include "puzzle.hpp"
void press_button_callback(Fl_Widget *w, void *params);
+bool is_next_to_empty_box(GameParams::coordinates empty_box_pos,
+ GameParams::coordinates current_pos);
class PuzzleGame {
public: