1
<!-- version="0.2.8.0" -->
2
<!ELEMENT Resource (Map)>
7
version CDATA #REQUIRED
8
author CDATA "Anonymous"
9
category CDATA "unsorted"
10
comissioner CDATA #IMPLIED
13
<!ELEMENT Map (Settings?, World)>
15
<!ELEMENT Settings (Setting*)>
16
<!ELEMENT Setting EMPTY>
17
<!ATTLIST Setting name CDATA #REQUIRED>
18
<!ATTLIST Setting value CDATA #REQUIRED>
20
<!-- ATM, a map contain only one Field -->
21
<!ELEMENT World (Field)>
23
- may have an axes declared
24
- need at least one spawn
25
- need at least one wall -->
26
<!ELEMENT Field (Axes?, (Spawn | Wall | Zone)*)>
28
<!ELEMENT Axes (Axis*)>
29
<!ELEMENT Spawn EMPTY>
30
<!ELEMENT Wall (Point+) >
31
<!ELEMENT Point EMPTY>
33
<!ELEMENT Zone (ShapeCircle) >
35
<!ATTLIST Map version CDATA #REQUIRED>
37
<!ATTLIST Field logicalBox (true | false) "true">
39
<!ATTLIST Axes number CDATA "4">
40
<!ATTLIST Axes normalize (true | false) "true">
42
<!ATTLIST Spawn x CDATA #REQUIRED>
43
<!ATTLIST Spawn y CDATA #REQUIRED>
44
<!ATTLIST Spawn xdir CDATA #IMPLIED>
45
<!ATTLIST Spawn ydir CDATA #IMPLIED>
46
<!ATTLIST Spawn angle CDATA #IMPLIED>
47
<!ATTLIST Spawn length CDATA "1.0">
49
<!ATTLIST Wall height CDATA #IMPLIED>
51
<!ATTLIST Point x CDATA #REQUIRED>
52
<!ATTLIST Point y CDATA #REQUIRED>
54
<!ATTLIST Axis xdir CDATA #IMPLIED>
55
<!ATTLIST Axis ydir CDATA #IMPLIED>
56
<!ATTLIST Axis angle CDATA #IMPLIED>
57
<!ATTLIST Axis length CDATA "1.0">
59
<!ATTLIST Zone effect (win | death | fortress ) "death" >
61
<!ELEMENT ShapeCircle (Point)>
62
<!ATTLIST ShapeCircle radius CDATA #REQUIRED>
63
<!ATTLIST ShapeCircle growth CDATA "0.0">