Debian Codegraph @

texmf-dist/source/latex/wargame/tests/map.dtx

raw
1 % \section{A test map}
2 %
3 % \iffalse
4 %<*testmap>
5 % \fi
6 % \begin{Macro}{\testmap}
7 %
8 % A map for testing stuff
9 %
10 % \begin{macrocode}
11 \def\testmap{
12 \hex[] (r=0,c=0)
13 \hex[] (r=0,c=1)
14 \hex[] (r=0,c=2)
15 \hex[] (r=0,c=3)
16 \hex[] (r=1,c=0)
17 \hex[town={pic=hex/town/city,name=London,font=\noexpand\bfseries}] (r=1,c=1)
18 \hex[terrain={woods}] (r=1,c=2)
19 \hex[] (r=1,c=3)
20 \hex[] (r=2,c=0)
21 \hex[] (r=2,c=1)
22 \hex[town={name=Oxford,red}] (r=2,c=2)
23 \hex[] (r=2,c=3)
24 \hex[] (r=3,c=0)
25 \hex[town={name=Cambridge}] (r=3,c=1)
26 \hex[] (r=3,c=2)
27 \hex[] (r=3,c=3)
28 \river
29 (hex cs:r=0,c=0,v=north west)--
30 (hex cs:r=0,c=0,v=north east)--
31 (hex cs:r=1,c=1,v=north west)--
32 (hex cs:r=2,c=1,v=west)--
33 (hex cs:r=2,c=1,v=north west)--
34 (hex cs:r=2,c=1,v=north east)--
35 (hex cs:r=3,c=1,v=east)--
36 (hex cs:r=2,c=2,v=north east)--
37 (hex cs:r=3,c=3,v=north west);
38 \river
39 (hex cs:r=2,c=0,v=east)--
40 (hex cs:r=2,c=0,v=north east);
41 \border[dashed,line width=3pt,red]
42 (hex cs:r=0,c=3,v=west)--
43 (hex cs:r=0,c=3,v=north west)--
44 (hex cs:r=1,c=3,v=west)--
45 (hex cs:r=1,c=3,v=north west)--
46 (hex cs:r=1,c=3,v=north east);
47 \road (hex cs:r=0,c=0,e=S)--(hex cs:r=0,c=0)--(hex cs:r=1,c=1);
48 \road (hex cs:r=1,c=1)--(hex cs:r=0,c=2)--(hex cs:r=1,c=3);
49 \road (hex cs:r=1,c=1)--(hex cs:r=2,c=1)--(hex cs:r=2,c=2);
50 \road (hex cs:r=1,c=3)--(hex cs:r=1,c=4);
51 \railroad (hex cs:r=2,c=2)--(hex cs:r=3,c=2)--(hex cs:r=4,c=3);
52 }
53 % \end{macrocode}
54 % \end{Macro}
55 % \iffalse
56 %</testmap>
57 % \fi