\doxysection{User\+Settings.\+hpp}
\hypertarget{UserSettings_8hpp_source}{}\label{UserSettings_8hpp_source}\index{/home/chr/devel/PhD/Environment/pub/PCBEnv/pcbenv/cxx/UserSettings.hpp@{/home/chr/devel/PhD/Environment/pub/PCBEnv/pcbenv/cxx/UserSettings.hpp}}

\begin{DoxyCode}{0}
\DoxyCodeLine{00001\ }
\DoxyCodeLine{00002\ \textcolor{preprocessor}{\#ifndef\ GYM\_PCB\_USERPARAMETERS\_H}}
\DoxyCodeLine{00003\ \textcolor{preprocessor}{\#define\ GYM\_PCB\_USERPARAMETERS\_H}}
\DoxyCodeLine{00004\ }
\DoxyCodeLine{00005\ \textcolor{preprocessor}{\#include\ "{}Defs.hpp"{}}}
\DoxyCodeLine{00006\ \textcolor{preprocessor}{\#include\ <string>}}
\DoxyCodeLine{00007\ \textcolor{preprocessor}{\#include\ <chrono>}}
\DoxyCodeLine{00008\ \textcolor{preprocessor}{\#include\ <thread>}}
\DoxyCodeLine{00009\ }
\DoxyCodeLine{00010\ \textcolor{keyword}{class\ }UserSettings}
\DoxyCodeLine{00011\ \{}
\DoxyCodeLine{00012\ \textcolor{keyword}{public}:}
\DoxyCodeLine{00013\ \ \ \ \ \textcolor{keyword}{static}\ \textcolor{keyword}{const}\ UserSettings\&\ get()\ \{\ \textcolor{keywordflow}{return}\ sInstance;\ \}}
\DoxyCodeLine{00014\ }
\DoxyCodeLine{00015\ \ \ \ \ uint32\_t\ MaxGridCells\{1u\ <<\ 26\};}
\DoxyCodeLine{00016\ \ \ \ \ uint64\_t\ AgentTimeoutUSecs\{0\};}
\DoxyCodeLine{00017\ \ \ \ \ \textcolor{keywordtype}{float}\ AStarViaCostFactor\{1.0f\};}
\DoxyCodeLine{00018\ \ \ \ \ \textcolor{keyword}{struct\ }\{}
\DoxyCodeLine{00019\ \ \ \ \ \ \ \ \ uint\ WindowSize[2]\{1024,\ 768\};}
\DoxyCodeLine{00020\ \ \ \ \ \ \ \ \ \textcolor{keywordtype}{float}\ PointSize\{1.0f\};}
\DoxyCodeLine{00021\ \ \ \ \ \ \ \ \ uint\ FPS\{40\};}
\DoxyCodeLine{00022\ \ \ \ \ \ \ \ \ uint\ SidePaneWidth\{256\};}
\DoxyCodeLine{00023\ \ \ \ \ \ \ \ \ uint\ LockSteppingGranularity\{0\};}
\DoxyCodeLine{00024\ \ \ \ \ \ \ \ \ uint\ ActionDelayUSecs\{0\};}
\DoxyCodeLine{00025\ \ \ \ \ \ \ \ \ \textcolor{keywordtype}{bool}\ EnableRendering\{\textcolor{keyword}{true}\};}
\DoxyCodeLine{00026\ \ \ \ \ \ \ \ \ \textcolor{keywordtype}{bool}\ VSync\{\textcolor{keyword}{true}\};}
\DoxyCodeLine{00027\ \ \ \ \ \ \ \ \ \textcolor{keywordtype}{bool}\ GridLinesVisible\{\textcolor{keyword}{false}\};}
\DoxyCodeLine{00028\ \ \ \ \ \ \ \ \ \textcolor{keywordtype}{bool}\ GridPointsVisible\{\textcolor{keyword}{false}\};}
\DoxyCodeLine{00029\ \ \ \ \ \ \ \ \ \textcolor{keywordtype}{bool}\ FootprintsVisible\{\textcolor{keyword}{false}\};}
\DoxyCodeLine{00030\ \ \ \ \ \ \ \ \ \textcolor{keywordtype}{bool}\ RatsNestVisible\{\textcolor{keyword}{false}\};}
\DoxyCodeLine{00031\ \ \ \ \ \ \ \ \ \textcolor{keywordtype}{bool}\ TriangulationVisible\{\textcolor{keyword}{false}\};}
\DoxyCodeLine{00032\ \ \ \ \ \ \ \ \ \textcolor{keywordtype}{bool}\ RoutePreview\{\textcolor{keyword}{true}\};}
\DoxyCodeLine{00033\ \ \ \ \ \}\ UI;}
\DoxyCodeLine{00034\ \ \ \ \ \textcolor{keyword}{struct\ }\{}
\DoxyCodeLine{00035\ \ \ \ \ \ \ \ \ \textcolor{keywordtype}{float}\ PerVia\{0.0f\};}
\DoxyCodeLine{00036\ \ \ \ \ \ \ \ \ \textcolor{keywordtype}{float}\ PerDisconnect\{-\/5.0f\};}
\DoxyCodeLine{00037\ \ \ \ \ \ \ \ \ \textcolor{keywordtype}{float}\ AnyDisconnect\{0.0f\};}
\DoxyCodeLine{00038\ \ \ \ \ \}\ Reward;}
\DoxyCodeLine{00039\ \ \ \ \ \textcolor{keyword}{struct\ }\{}
\DoxyCodeLine{00040\ \ \ \ \ \ \ \ \ std::string\ GLSL;}
\DoxyCodeLine{00041\ \ \ \ \ \ \ \ \ std::string\ JSON;}
\DoxyCodeLine{00042\ \ \ \ \ \ \ \ \ std::string\ QTUI;}
\DoxyCodeLine{00043\ \ \ \ \ \}\ Paths;}
\DoxyCodeLine{00044\ \ \ \ \ \textcolor{keyword}{static}\ \textcolor{keywordtype}{void}\ LoadFile(\textcolor{keyword}{const}\ std::string\ \&path);}
\DoxyCodeLine{00045\ \ \ \ \ \textcolor{keyword}{static}\ \textcolor{keywordtype}{void}\ LoadJSON(\textcolor{keyword}{const}\ std::string\ \&json)\ \{\ sInstance.loadJSON(json);\ \}}
\DoxyCodeLine{00046\ \ \ \ \ \textcolor{keywordtype}{void}\ AddPath(\textcolor{keyword}{const}\ std::string\_view\ \&s);}
\DoxyCodeLine{00047\ }
\DoxyCodeLine{00048\ \ \ \ \ \textcolor{keywordtype}{void}\ sleepForActionDelay(uint\ times\ =\ 1)\ \textcolor{keyword}{const};}
\DoxyCodeLine{00049\ }
\DoxyCodeLine{00050\ \ \ \ \ std::string\ str()\ \textcolor{keyword}{const};}
\DoxyCodeLine{00051\ }
\DoxyCodeLine{00052\ \ \ \ \ \textcolor{keyword}{static}\ UserSettings\&\ edit()\ \{\ \textcolor{keywordflow}{return}\ sInstance;\ \}}
\DoxyCodeLine{00053\ \textcolor{keyword}{private}:}
\DoxyCodeLine{00054\ \ \ \ \ UserSettings()\ \{\ \}}
\DoxyCodeLine{00055\ \textcolor{keyword}{private}:}
\DoxyCodeLine{00056\ \ \ \ \ \textcolor{keywordtype}{void}\ loadJSON(\textcolor{keyword}{const}\ std::string\ \&json);}
\DoxyCodeLine{00057\ }
\DoxyCodeLine{00058\ \ \ \ \ \textcolor{keyword}{static}\ UserSettings\ sInstance;}
\DoxyCodeLine{00059\ \};}
\DoxyCodeLine{00060\ }
\DoxyCodeLine{00061\ \textcolor{keyword}{inline}\ \textcolor{keywordtype}{void}\ UserSettings::sleepForActionDelay(uint\ times)\textcolor{keyword}{\ const}}
\DoxyCodeLine{00062\ \textcolor{keyword}{}\{}
\DoxyCodeLine{00063\ \textcolor{preprocessor}{\#ifdef\ GYM\_PCB\_ENABLE\_UI}}
\DoxyCodeLine{00064\ \ \ \ \ \textcolor{keywordflow}{if}\ (UI.ActionDelayUSecs)}
\DoxyCodeLine{00065\ \ \ \ \ \ \ \ \ std::this\_thread::sleep\_for(std::chrono::microseconds(uint64\_t(UI.ActionDelayUSecs)\ *\ times));}
\DoxyCodeLine{00066\ \textcolor{preprocessor}{\#endif}}
\DoxyCodeLine{00067\ \}}
\DoxyCodeLine{00068\ }
\DoxyCodeLine{00069\ \textcolor{preprocessor}{\#endif\ }\textcolor{comment}{//\ GYM\_PCB\_USERPARAMETERS\_H}}

\end{DoxyCode}
