termaze

maze generation and pathfinding visualizer
git clone git://git.yotsev.xyz/termaze.git
Log | Files | Refs | README | LICENSE

state.hpp (878B)


      1 #ifndef STATE_HPP
      2 #define STATE_HPP
      3 
      4 #include <mutex>
      5 #include <string>
      6 
      7 namespace s {
      8 extern std::mutex draw;
      9 extern int time_hard_maze_gen; // time between algorithm cycles
     10 extern int time_soft_maze_gen; // time between cycles within algorithms cycles
     11 extern int time_hard_pathfinding; // time between algorithm cycles
     12 extern int time_soft_pathfinding; // time between cycles within algorithms cycles
     13 extern int time_main; // time between main loops
     14 extern int time_path; // time between drawing steps in final path
     15 extern bool render_maze_gen; // should you render maze generating proccess?
     16 extern bool render_pathfinding; // should you render pathfinding proccess?
     17 extern bool ui_is_open; // is ui open or waiting to be rendered?
     18 extern bool ui_render_is_safe; // is it safe to render ui?
     19 extern std::string pathfinder;
     20 extern std::string generator;
     21 };
     22 
     23 #endif // STATE_HPP