summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/wargame/source/natoapp6c/weaponry.dtx
blob: 3138da9e7505a9522c02c0f7ff30d029af7b6c2b (plain)
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
% \iffalse
% --------------------------------------------------------------------
%<*natoapp6c>
% \fi
% \subsubsection{Symbols used when defining weaponry}
% 
%
% \begin{NatoAppSymbol}{natoapp6c/s/weapon}
%    \begin{macrocode}
\tikzset{
  pics/natoapp6c/s/weapon/.is choice,
  pics/natoapp6c/s/weapon/base/.style={
    code={\path [pic actions] (0,-0.2)--(0,.2);}},
  pics/natoapp6c/s/weapon/top/.style={
    code={\path [pic actions] (0,.2)--(0,.35);}},
  pics/natoapp6c/s/weapon/bottom/.style={
    code={\path [pic actions] (0,.-.35)--(0,-.2);}},
  pics/natoapp6c/s/weapon/rifle/.style={
    code={\path [pic actions] (0.2, 0.1)--(0, 0.35)--(-0.2,0.1);}},
  pics/natoapp6c/s/weapon/machine gun/.style={
    code={\path [pic actions] (0.2, -0.35)--(-0.2, -0.35);}},
  pics/natoapp6c/s/weapon/grenade launcher/.style={
    code={\path [pic actions] (0,0) circle (0.1);}},
  pics/natoapp6c/s/weapon/missile launcher/.style={
    code={%
      \path [pic actions] (0.2, 0.15)
      to[out=90,in=90,looseness=1.75] (-0.2, 0.15);}},
  pics/natoapp6c/s/weapon/non lethal/.style={
    code={\path [pic actions] (-.2,.35) -- (.2,.35);}},
  pics/natoapp6c/s/weapon/multi fire/.style={
    code={\path[pic actions] (.2,-.2)--(.2, .2) (-.2,-.2)--(-.2,0.2);}},
  pics/natoapp6c/s/weapon/air defence/.style={
    code={%
      \path[pic actions] (0.2, -0.4)
      to[out=90,in=90,looseness=1.7] (-0.2, -0.4) -- cycle;}},
  pics/natoapp6c/s/weapon/anti tank/.style={
    code={\path[pic actions]  (0.2, -0.4)--(0,-0.2)--(-0.2,-0.4);}},
  pics/natoapp6c/s/weapon/full/.style={
    code={%
      \pic[draw]{natoapp6c/s/weapon=base};
      \pic[draw]{natoapp6c/s/weapon=top};
      \pic[draw]{natoapp6c/s/weapon=bottom};}},
  pics/natoapp6c/s/weapon/.default=full      
}
%    \end{macrocode}
% \end{NatoAppSymbol}
%
%
% \begin{NatoAppSymbol}{natoapp6c/s/type}
%
%   (Weight) class of weapons: light, medium, heavy
%
%    \begin{macrocode}
\tikzset{
  pics/natoapp6c/s/type/.is choice,
  pics/natoapp6c/s/type/light/.style={
    code={\path [fill=pgfstrokecolor,pic actions] (-0.2, -0.12) rectangle (.2,-.08);}},
  pics/natoapp6c/s/type/medium/.style={
    code={
      \path [fill=pgfstrokecolor,pic actions]
      (-0.2, -0.12) rectangle (.2,-.08)
      (-0.2, -0.22) rectangle (.2,-.18);}},
  pics/natoapp6c/s/type/heavy/.style={
    code={
      \path [fill=pgfstrokecolor,pic actions]
      (-0.2, -0.12) rectangle (.2,-.08)
      (-0.2, -0.22) rectangle (.2,-.18)
      (-0.2, -0.32) rectangle (.2,-.28);}},
  pics/natoapp6c/s/type/vlight/.style={
    code={\path [fill=pgfstrokecolor,pic actions]
      (-.025,-0.2) rectangle (.025,.2);}},
  pics/natoapp6c/s/type/vmedium/.style={
    code={\path [fill=pgfstrokecolor,pic actions]
      (-.075,-0.2) rectangle (-.025,.2)
      ( .025, -0.2) rectangle (.075,.2);}},
  pics/natoapp6c/s/type/vheavy/.style={
    code={\path [fill=pgfstrokecolor,pic actions]
      (-.125,-0.2) rectangle (-.075,.2)
      (-.025,-0.2) rectangle ( .025,.2)
      ( .075,-0.2) rectangle ( .125,.2);}},
  pics/natoapp6c/s/type/.default=light,
}
%    \end{macrocode}
% \end{NatoAppSymbol}
% \iffalse
% </natoapp6c>
% --------------------------------------------------------------------
% \fi