Debian Codegraph @

texmf-dist/source/latex/wargame/hex/core.dtx

raw
1 % \iffalse
2 % ====================================================================
3 % \fi
4 %
5 % \subsection{The \texttt{wargame.hex} \TikZ{} library}
6 % \label{sec:impl:hex}
7 %
8 % \iffalse
9 %<*hex>
10 % \fi
11 %
12 % Used \TikZ{} libraries
13 %
14 % \begin{macrocode}
15 \RequirePackage{alphalph}
16 \usetikzlibrary{calc}
17 \usetikzlibrary{arrows.meta}
18 \usetikzlibrary{arrows}
19 \usetikzlibrary{shapes.geometric}
20 \usetikzlibrary{shapes.symbols}
21 \usetikzlibrary{shapes.arrows}
22 \usetikzlibrary{decorations}
23 \usetikzlibrary{decorations.pathmorphing}
24 \usetikzlibrary{decorations.pathreplacing}
25 \usetikzlibrary{decorations.markings}
26 \usetikzlibrary{wargame.util}
27 % \end{macrocode}
28 %
29 %
30 % \begin{Macro}{\@ifempty}
31 %
32 % This is a utility macro we will use below.
33 %
34 % \begin{macrocode}
35 \def\@ifempty#1{\def\temp{#1}\ifx\temp\@empty}
36 % \end{macrocode}
37 % \end{Macro}
38 %
39 % \iffalse
40 % --------------------------------------------------------------------
41 % \fi
42 %
43 % \subsubsection{Debugging}
44 %
45 % The counter \cs{hexdbglvl} sets the debug level, and the macro
46 % \cs{hex@dbg} prints out (conditionally) debug messages.
47 %
48 % \begin{Macro}{\hexdbglvl,\hex@dbg}
49 % \begin{macrocode}
50 \newcount\hexdbglvl\hexdbglvl=\wargamedbglvl
51 \def\hex@dbg#1#2{%
52 \ifnum#1>\hexdbglvl\relax\else\message{^^J#2}\fi}
53 % \end{macrocode}
54 % \end{Macro}
55 %
56 % \iffalse
57 % --------------------------------------------------------------------
58 % \fi
59 % \subsubsection{Suppress terrain pictures}
60 %
61 % \begin{macrocode}
62 \@ifundefined{ifhex@terrain@pic}{%
63 \newif\ifhex@terrain@pic
64 \hex@terrain@pictrue}{}
65 \def\markpos#1(#2){}
66 % \end{macrocode}
67 %
68 % \iffalse
69 % --------------------------------------------------------------------
70 % \fi
71 %
72 % \input{hex/coord.dtx}
73 % \input{hex/shape.dtx}
74 % \input{hex/terrain.dtx}
75 % \input{hex/terrain/beach.dtx}
76 % \input{hex/terrain/light_woods.dtx}
77 % \input{hex/terrain/woods.dtx}
78 % \input{hex/terrain/swamp.dtx}
79 % \input{hex/terrain/rough.dtx}
80 % \input{hex/terrain/mountains.dtx}
81 % \input{hex/terrain/village.dtx}
82 % \input{hex/terrain/town.dtx}
83 % \input{hex/terrain/city.dtx}
84 % \input{hex/terrain/mountain.dtx}
85 % \input{hex/terrain/tree.dtx}
86 % \input{hex/ridges.dtx}
87 % \input{hex/towns.dtx}
88 % \input{hex/labels.dtx}
89 % \input{hex/extra.dtx}
90 % \input{hex/paths.dtx}
91 % \input{hex/board.dtx}
92 % \input{hex/split.dtx}
93 % \iffalse
94 %</hex>
95 % \fi
96 %