Web Dev Solutions

Catalin Mititiuc

aboutsummaryrefslogtreecommitdiff
blob: 1d0f8c45a249162b7809d13b3ca959f7d381498a (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
<?xml version="1.0" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
  "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg viewBox="-25 -150 400 570" xmlns="http://www.w3.org/2000/svg">
  <link xmlns="http://www.w3.org/1999/xhtml" rel="stylesheet" href="map.css" type="text/css"/>
  <defs>
    <polygon id="hex" points="0,10 8.66,5 8.66,-5 0,-10 -8.66,-5 -8.66,5"/>

    <circle id="counter-base" cx="0" cy="0" r="5"/>

    <g id="t-1" class="troop-counter-template"><use href="#counter-base"/><text>1</text></g>
    <g id="t-2" class="troop-counter-template"><use href="#counter-base"/><text>2</text></g>
    <g id="t-3" class="troop-counter-template"><use href="#counter-base"/><text>3</text></g>
    <g id="t-4" class="troop-counter-template"><use href="#counter-base"/><text>4</text></g>
    <g id="t-5" class="troop-counter-template"><use href="#counter-base"/><text>5</text></g>
    <g id="t-6" class="troop-counter-template"><use href="#counter-base"/><text>6</text></g>
    <g id="t-7" class="troop-counter-template"><use href="#counter-base"/><text>7</text></g>

    <image id="counter-prone" href="counter_prone.jpg" width="10"/>
    <image id="counter-grenade" href="counter_grenade.jpg" width="10"/>
  </defs>

  <rect id="background" x="-18" y="-10" width="386" height="322"/>

  <g class="board">
    <g id="firing-arcs">
      <g id="shapes"/>
      <g id="lines"/>
    </g>
    <g class="start-locations">
      <g data-y="-2">
        <g data-x="4" class="counter" data-allegiance="liao" data-number="1"><use href="#t-1"/></g>
        <g data-x="3" class="counter" data-allegiance="liao" data-number="2"><use href="#t-2"/></g>
        <g data-x="2" class="counter" data-allegiance="liao" data-number="3"><use href="#t-3"/></g>
        <g data-x="1" class="counter" data-allegiance="liao" data-number="4"><use href="#t-4"/></g>
        <g data-x="0" class="counter" data-allegiance="liao" data-number="5"><use href="#t-5"/></g>
      </g>
      <g data-y="6">
        <g data-x="0" class="counter" data-allegiance="davion" data-number="1"><use href="#t-1"/></g>
        <g data-x="1" class="counter" data-allegiance="davion" data-number="2"><use href="#t-2"/></g>
        <g data-x="2" class="counter" data-allegiance="davion" data-number="3"><use href="#t-3"/></g>
        <g data-x="3" class="counter" data-allegiance="davion" data-number="4"><use href="#t-4"/></g>
        <g data-x="4" class="counter" data-allegiance="davion" data-number="5"><use href="#t-5"/></g>
      </g>
    </g>
    <g class="grid">
      <g data-y="0">
        <g data-x="0"><use href="#hex"/></g>
        <g data-x="1"><use href="#hex"/></g>
        <g data-x="2"><use href="#hex"/></g>
        <g data-x="3"><use href="#hex"/></g>
        <g data-x="4"><use href="#hex"/></g>
      </g>
      <g data-y="1">
        <g data-x="0"><use href="#hex"/></g>
        <g data-x="1"><use href="#hex"/></g>
        <g data-x="2"><use href="#hex"/></g>
        <g data-x="3"><use href="#hex"/></g>
        <g data-x="4"><use href="#hex"/></g>
      </g>
      <g data-y="2">
        <g data-x="0"><use href="#hex"/></g>
        <g data-x="1"><use href="#hex"/></g>
        <g data-x="2"><use href="#hex"/></g>
        <g data-x="3"><use href="#hex"/></g>
        <g data-x="4"><use href="#hex"/></g>
      </g>
      <g data-y="3">
        <g data-x="0"><use href="#hex"/></g>
        <g data-x="1"><use href="#hex"/></g>
        <g data-x="2"><use href="#hex"/></g>
        <g data-x="3"><use href="#hex"/></g>
        <g data-x="4"><use href="#hex"/></g>
      </g>
      <g data-y="4">
        <g data-x="0"><use href="#hex"/></g>
        <g data-x="1"><use href="#hex"/></g>
        <g data-x="2"><use href="#hex"/></g>
        <g data-x="3"><use href="#hex"/></g>
        <g data-x="4"><use href="#hex"/></g>
      </g>
    </g>
  </g>
</svg>