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