Debian Codegraph @

texmf-dist/source/latex/wargame/natoapp6c/weaponry.dtx

raw
1 % \iffalse
2 % --------------------------------------------------------------------
3 %<*natoapp6c>
4 % \fi
5 % \subsubsection{Symbols used when defining weaponry}
6 %
7 %
8 % \begin{NatoAppSymbol}{natoapp6c/s/weapon}
9 % \begin{macrocode}
10 \tikzset{
11 pics/natoapp6c/s/weapon/.is choice,
12 pics/natoapp6c/s/weapon/base/.style={
13 code={\path [pic actions] (0,-0.2)--(0,.2);}},
14 pics/natoapp6c/s/weapon/top/.style={
15 code={\path [pic actions] (0,.2)--(0,.35);}},
16 pics/natoapp6c/s/weapon/bottom/.style={
17 code={\path [pic actions] (0,.-.35)--(0,-.2);}},
18 pics/natoapp6c/s/weapon/rifle/.style={
19 code={\path [pic actions] (0.2, 0.1)--(0, 0.35)--(-0.2,0.1);}},
20 pics/natoapp6c/s/weapon/machine gun/.style={
21 code={\path [pic actions] (0.2, -0.35)--(-0.2, -0.35);}},
22 pics/natoapp6c/s/weapon/grenade launcher/.style={
23 code={\path [pic actions] (0,0) circle (0.1);}},
24 pics/natoapp6c/s/weapon/missile launcher/.style={
25 code={%
26 \path [pic actions] (0.2, 0.15)
27 to[out=90,in=90,looseness=1.75] (-0.2, 0.15);}},
28 pics/natoapp6c/s/weapon/non lethal/.style={
29 code={\path [pic actions] (-.2,.35) -- (.2,.35);}},
30 pics/natoapp6c/s/weapon/multi fire/.style={
31 code={\path[pic actions] (.2,-.2)--(.2, .2) (-.2,-.2)--(-.2,0.2);}},
32 pics/natoapp6c/s/weapon/air defence/.style={
33 code={%
34 \path[pic actions] (0.2, -0.4)
35 to[out=90,in=90,looseness=1.7] (-0.2, -0.4) -- cycle;}},
36 pics/natoapp6c/s/weapon/anti tank/.style={
37 code={\path[pic actions] (0.2, -0.4)--(0,-0.2)--(-0.2,-0.4);}},
38 pics/natoapp6c/s/weapon/full/.style={
39 code={%
40 \pic[draw]{natoapp6c/s/weapon=base};
41 \pic[draw]{natoapp6c/s/weapon=top};
42 \pic[draw]{natoapp6c/s/weapon=bottom};}},
43 pics/natoapp6c/s/weapon/.default=full
44 }
45 % \end{macrocode}
46 % \end{NatoAppSymbol}
47 %
48 %
49 % \begin{NatoAppSymbol}{natoapp6c/s/type}
50 %
51 % (Weight) class of weapons: light, medium, heavy
52 %
53 % \begin{macrocode}
54 \tikzset{
55 pics/natoapp6c/s/type/.is choice,
56 pics/natoapp6c/s/type/light/.style={
57 code={\path [fill=pgfstrokecolor,pic actions] (-0.2, -0.12) rectangle (.2,-.08);}},
58 pics/natoapp6c/s/type/medium/.style={
59 code={
60 \path [fill=pgfstrokecolor,pic actions]
61 (-0.2, -0.12) rectangle (.2,-.08)
62 (-0.2, -0.22) rectangle (.2,-.18);}},
63 pics/natoapp6c/s/type/heavy/.style={
64 code={
65 \path [fill=pgfstrokecolor,pic actions]
66 (-0.2, -0.12) rectangle (.2,-.08)
67 (-0.2, -0.22) rectangle (.2,-.18)
68 (-0.2, -0.32) rectangle (.2,-.28);}},
69 pics/natoapp6c/s/type/vlight/.style={
70 code={\path [fill=pgfstrokecolor,pic actions]
71 (-.025,-0.2) rectangle (.025,.2);}},
72 pics/natoapp6c/s/type/vmedium/.style={
73 code={\path [fill=pgfstrokecolor,pic actions]
74 (-.075,-0.2) rectangle (-.025,.2)
75 ( .025, -0.2) rectangle (.075,.2);}},
76 pics/natoapp6c/s/type/vheavy/.style={
77 code={\path [fill=pgfstrokecolor,pic actions]
78 (-.125,-0.2) rectangle (-.075,.2)
79 (-.025,-0.2) rectangle ( .025,.2)
80 ( .075,-0.2) rectangle ( .125,.2);}},
81 pics/natoapp6c/s/type/.default=light,
82 }
83 % \end{macrocode}
84 % \end{NatoAppSymbol}
85 % \iffalse
86 % </natoapp6c>
87 % --------------------------------------------------------------------
88 % \fi