termaze

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

commit 0ea9faa789276b5134c3e6fed00aa093a7ab3d0c
parent 60ed8bece29f2e5427466b52e78e46cca5ebab11
Author: Petar Yotsev <petar@yotsev.xyz>
Date:   Tue,  8 Sep 2020 17:34:32 +0100

Replace s class with namespace & Makefile cleanup

Diffstat:
Astate.cpp | 20++++++++++++++++++++
1 file changed, 20 insertions(+), 0 deletions(-)

diff --git a/state.cpp b/state.cpp @@ -0,0 +1,20 @@ +#include <mutex> +#include <string> + +#include "state.hpp" + +namespace s { +std::mutex draw; +int time_hard_maze_gen = 10; // time between algorithm cycles +int time_soft_maze_gen = 1; // time between cycles within algorithms cycles +int time_hard_pathfinding = 15; // time between algorithm cycles +int time_soft_pathfinding = 2; // time between cycles within algorithms cycles +int time_main = 1500; // time between main loops +int time_path = 15; // time between drawing steps in final path +bool render_maze_gen = true; // should you render maze generating proccess? +bool render_pathfinding = true; // should you render pathfinding proccess? +bool ui_is_open = false; // is ui open or waiting to be rendered? +bool ui_render_is_safe = false; // is it safe to render ui? +std::string pathfinder = "A*"; +std::string generator = "RecursiveDivider"; +};