state.cpp (842B)
1 #include <mutex> 2 #include <string> 3 4 #include "state.hpp" 5 6 namespace s { 7 std::mutex draw; 8 int time_hard_maze_gen = 10; // time between algorithm cycles 9 int time_soft_maze_gen = 1; // time between cycles within algorithms cycles 10 int time_hard_pathfinding = 15; // time between algorithm cycles 11 int time_soft_pathfinding = 2; // time between cycles within algorithms cycles 12 int time_main = 1500; // time between main loops 13 int time_path = 15; // time between drawing steps in final path 14 bool render_maze_gen = true; // should you render maze generating proccess? 15 bool render_pathfinding = true; // should you render pathfinding proccess? 16 bool ui_is_open = false; // is ui open or waiting to be rendered? 17 bool ui_render_is_safe = false; // is it safe to render ui? 18 std::string pathfinder = "A*"; 19 std::string generator = "Prim random weights"; 20 };