Web Dev Solutions

Catalin Mititiuc

aboutsummaryrefslogtreecommitdiff
blob: d38738ca877b4d34b3dfc1687c7c78580a5c5afe (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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
<?xml version="1.0" standalone="no"?>
<svg xmlns="http://www.w3.org/2000/svg" viewBox="-10 -10 200 300">
  <defs>
    <g id="building1" class="building">
      <g class="footprint">
        <g data-q="0" data-r="0" data-s="0" data-left="1" data-top="3" data-right="2" data-bottom="4" data-offset="left" />
      </g>

      <g class="structure">
        <path id="building1-floor" class="floor" d="M -30.309999,-52.5 H 38.97 l 0,119.999999 H -30.31 Z" />
        <path id="building1-outer-wall" class="outer-wall" d="M 38.969998,-7.500001 21.65,-7.5 V 7.4999997 L 12.989997,7.5 m 0,30 25.980001,0 M 12.989997,67.5 v -60 l -17.319997,0 0,-30.0000007 M -4.330003,67.5 v -45 H -30.31 m 0,-74.999999 L 38.97,-52.5 38.969999,67.499999 -30.31,67.5 Z" />
        <path id="building1-inner-wall" class="inner-wall" d="M 38.969998,-7.500001 21.65,-7.5 V 7.4999997 L 12.989997,7.5 m 0,30 25.980001,0 M 12.989997,67.5 v -60 l -17.319997,0 0,-30.0000007 M -4.330003,67.5 v -45 H -30.31 m 0,-74.999999 L 38.97,-52.5 38.969999,67.499999 -30.31,67.5 Z" />
        <path id="building1-door-edges" class="door-edges" d="m 12.99,52.5 0,-15 M -4.33,45.000003 v -15 M 12.990002,30 l 0,-15" />
        <path id="building1-doors" class="doors" d="m 12.99,48.169997 0,-6.34 M -4.33,40.67 v -6.34 m 17.320002,-8.66 0,-6.34" />
        <path id="building1-exit-edges" class="exits door-edges" d="M 0,-52.5 H 17.32 M -30.31,8.66 V -8.66" />
        <path id="building1-exits" class="doors exits" d="M 4.3300002,-52.5 H 12.99 m -43.3,56.8300023 v -8.660003" />
        <path id="building1-windows" class="windows" d="m 32.501739,67.499994 -13.043478,0 m -49.768256,-8.478265 0,-13.043478 m 0,-69.456522 0,-13.043479" />
      </g>
    </g>

    <polygon id="desk" points="-1.5,-7 4.5,-7 4.5,7 -1.5,7 -2.5,6 -2.5,3 -4.5,3 -4.5,-3 -2.5,-3 -2.5,-6" />
    <rect id="couch" x="-4.25" y="-8" width="8.5" height="16" />
    <rect id="bed" x="-5" y="-9" width="10" height="18" />
    <rect id="cabinet" x="-2.5" y="-4.75" width="5" height="9.5" />

    <g id="mapsheet" class="mapsheet">
      <g class="building1" data-q="3" data-r="-5" data-s="2">
        <use href="#building1"/>
        <g class="furniture">
          <use href="#couch" transform="rotate(90,10.34,-27.66)" />
          <use href="#bed" transform="translate(-17.32,45)" />
          <use href="#bed" transform="translate(25.98,56)" />
          <use href="#cabinet" transform="rotate(90,29.575,-7.925)" />
          <use href="#cabinet" transform="rotate(90,24.24,1.74)" />
          <use href="#cabinet" transform="translate(10.98,-5.25)" />
          <use href="#cabinet" transform="rotate(90,-8.245,-2.7450001)" />
          <use href="#cabinet" transform="rotate(90,11.865878,19.740878)" />
          <use href="#cabinet" transform="translate(32.81,22.5)" />
          <use href="#cabinet" transform="rotate(90,-43.385,20.115)" />
        </g>
        <text class="elevation" x="34" y="56">1</text>
      </g>
    </g>
    <use href="counters.svg#mech-template"/>
    <use href="counters.svg#fallen-mech-template"/>
    <use href="counters.svg#vehicle-template"/>
  </defs>

  <g class="gameboard">
    <g class="grid">
      <g class="mapsheets" data-width="8" data-height="10">
        <g><use class="mapsheet" href="#mapsheet"/></g>
      </g>
    </g>

    <g class="start-locations" data-attacker-name="liao" data-defender-name="davion">
      <g data-edge="north" style="--i: -2">
        <g class="counter" data-allegiance="attacker" data-number="1" data-squad="1" data-armor="4">
          <use class="primary-weapon" href="counters.svg#blazer"/>
          <use class="troop-number" href="counters.svg#number-1"/>
          <use class="squad-number" href="counters.svg#number-1"/>
        </g>
        <g class="counter" data-allegiance="attacker" data-number="2" data-squad="1">
          <use class="primary-weapon" href="counters.svg#hsplaser"/>
          <use class="troop-number" href="counters.svg#number-2"/>
          <use class="squad-number" href="counters.svg#number-1"/>
        </g>

        <g class="counter" data-allegiance="attacker" data-number="1" data-squad="2">
          <use class="primary-weapon" href="counters.svg#smg"/>
          <use class="troop-number" href="counters.svg#number-1"/>
          <use class="squad-number" href="counters.svg#number-2"/>
        </g>
        <g class="counter" data-allegiance="attacker" data-number="2" data-squad="2">
          <use class="primary-weapon" href="counters.svg#smg"/>
          <use class="troop-number" href="counters.svg#number-2"/>
          <use class="squad-number" href="counters.svg#number-2"/>
        </g>
        <g class="counter" data-allegiance="attacker" data-number="3" data-squad="2">
          <use class="primary-weapon" href="counters.svg#smg"/>
          <use class="troop-number" href="counters.svg#number-3"/>
          <use class="squad-number" href="counters.svg#number-2"/>
        </g>

        <g class="counter" data-allegiance="attacker" data-number="1" data-squad="3">
          <use class="primary-weapon" href="counters.svg#rifle"/>
          <use class="troop-number" href="counters.svg#number-1"/>
          <use class="squad-number" href="counters.svg#number-3"/>
        </g>

        <g class="counter" data-allegiance="attacker" data-number="1" data-squad="4">
          <use class="primary-weapon" href="counters.svg#rifle"/>
          <use class="troop-number" href="counters.svg#number-1"/>
          <use class="squad-number" href="counters.svg#number-4"/>
        </g>
        <g class="counter" data-allegiance="attacker" data-number="2" data-squad="4">
          <use class="primary-weapon" href="counters.svg#rifle"/>
          <use class="troop-number" href="counters.svg#number-2"/>
          <use class="squad-number" href="counters.svg#number-4"/>
        </g>

        <g class="counter" data-allegiance="attacker" data-number="1" data-squad="5">
          <use class="primary-weapon" href="counters.svg#rifle"/>
          <use class="troop-number" href="counters.svg#number-1"/>
          <use class="squad-number" href="counters.svg#number-5"/>
        </g>
        <g class="counter" data-allegiance="attacker" data-number="2" data-squad="5">
          <use class="primary-weapon" href="counters.svg#rifle"/>
          <use class="troop-number" href="counters.svg#number-2"/>
          <use class="squad-number" href="counters.svg#number-5"/>
        </g>
      </g>

      <g data-edge="south" style="--i: 53">
        <g class="counter" data-allegiance="defender" data-number="1" data-squad="1">
          <use class="primary-weapon" href="counters.svg#blazer"/>
          <use class="troop-number" href="counters.svg#number-1"/>
          <use class="squad-number" href="counters.svg#number-1"/>
        </g>
        <g class="counter" data-allegiance="defender" data-number="1" data-squad="2">
          <use class="primary-weapon" href="counters.svg#smg"/>
          <use class="troop-number" href="counters.svg#number-1"/>
          <use class="squad-number" href="counters.svg#number-2"/>
        </g>
        <g class="counter" data-allegiance="defender" data-number="2" data-squad="2">
          <use class="primary-weapon" href="counters.svg#smg"/>
          <use class="troop-number" href="counters.svg#number-2"/>
          <use class="squad-number" href="counters.svg#number-2"/>
        </g>
      </g>
    </g>
  </g>
</svg>