% \iffalse
% ====================================================================
% \fi
% 
% \subsection{The \texttt{wargame.hex} \TikZ{} library}
% \label{sec:impl:hex}
%
%   \iffalse
%<*hex>   
%   \fi
%
% Used \TikZ{} libraries
%
%    \begin{macrocode}
\RequirePackage{alphalph}
\usetikzlibrary{calc}
\usetikzlibrary{arrows.meta}
\usetikzlibrary{arrows}
\usetikzlibrary{shapes.geometric}
\usetikzlibrary{shapes.symbols}
\usetikzlibrary{shapes.arrows}
\usetikzlibrary{decorations}
\usetikzlibrary{decorations.pathmorphing}
\usetikzlibrary{decorations.pathreplacing}
\usetikzlibrary{decorations.markings}
\usetikzlibrary{wargame.util}
%    \end{macrocode}
%
% 
% \begin{Macro}{\@ifempty}
%
%   This is a utility macro we will use below.
%  
%    \begin{macrocode}
\def\@ifempty#1{\def\temp{#1}\ifx\temp\@empty}
%    \end{macrocode}
% \end{Macro}
% 
% \iffalse
% --------------------------------------------------------------------
% \fi
% 
% \subsubsection{Debugging}
%
% The counter \cs{hexdbglvl} sets the debug level, and the macro
% \cs{hex@dbg} prints out (conditionally) debug messages.
% 
% \begin{Macro}{\hexdbglvl,\hex@dbg}
%    \begin{macrocode}
\newcount\hexdbglvl\hexdbglvl=\wargamedbglvl
\def\hex@dbg#1#2{%
  \ifnum#1>\hexdbglvl\relax\else\message{^^J#2}\fi}
%    \end{macrocode}
% \end{Macro}
%
% \iffalse
% --------------------------------------------------------------------
% \fi
% \subsubsection{Suppress terrain pictures}
%
%    \begin{macrocode}
\@ifundefined{ifhex@terrain@pic}{%
  \newif\ifhex@terrain@pic
  \hex@terrain@pictrue}{}
\def\markpos#1(#2){}
%    \end{macrocode}
%    
% \iffalse
% --------------------------------------------------------------------
% \fi
% 
% \input{hex/coord.dtx}
% \input{hex/shape.dtx}
% \input{hex/terrain.dtx}
% \input{hex/terrain/beach.dtx}
% \input{hex/terrain/light_woods.dtx}
% \input{hex/terrain/woods.dtx}
% \input{hex/terrain/swamp.dtx}
% \input{hex/terrain/rough.dtx}
% \input{hex/terrain/mountains.dtx}
% \input{hex/terrain/village.dtx}
% \input{hex/terrain/town.dtx}
% \input{hex/terrain/city.dtx}
% \input{hex/terrain/mountain.dtx}
% \input{hex/terrain/tree.dtx}
% \input{hex/ridges.dtx}
% \input{hex/towns.dtx}
% \input{hex/labels.dtx}
% \input{hex/extra.dtx}
% \input{hex/paths.dtx}
% \input{hex/board.dtx}
%   \iffalse
%</hex>   
%   \fi
%