view dtds/race.dtd @ 4:163b35f875ef

Re #7 - Add DTDs to API project because they're API related rather than GUI related no-open-ticket
author IBBoard <dev@ibboard.co.uk>
date Fri, 26 Dec 2008 12:32:16 +0000
parents
children
line wrap: on
line source

<!ELEMENT race (units,categories?,equipment?, abilities?)>
<!ELEMENT categories (cat+)>
<!ELEMENT cat EMPTY>
<!ELEMENT units (unit+)>
<!ELEMENT unit (unitCats,stats,unitEquipment,requires?,exclusiveOf?,champions?,specialItems?,attachable?,additionalMembers?)>
<!ELEMENT unitCats (unitCat+)>
<!ELEMENT unitCat EMPTY>
<!ELEMENT stats (stat+)>
<!ELEMENT stat (#PCDATA)>
<!ELEMENT unitEquipment (unitEquipmentItem*)>
<!ELEMENT unitEquipmentItem EMPTY>
<!ELEMENT requires (required+)>
<!ELEMENT required EMPTY>
<!ELEMENT exclusiveOf (exclusive+)>
<!ELEMENT exclusive EMPTY>
<!ELEMENT champions (champion+)>
<!ELEMENT champion EMPTY>
<!ELEMENT specialItems (specialItem+)>
<!ELEMENT specialItem EMPTY>
<!ELEMENT attachable (attachableUnit+)>
<!ELEMENT attachableUnit EMPTY>
<!ELEMENT additionalMembers (additionalMember+)>
<!ELEMENT additionalMember EMPTY>
<!ELEMENT equipment (equipmentItem*)>
<!ELEMENT equipmentItem (stats?)>
<!ELEMENT abilities (ability?)>
<!ELEMENT ability (description,requirements)>
<!ELEMENT description (#PCDATA)>
<!ELEMENT requirements (requirement*)>
<!ELEMENT requirement (#PCDATA)>

<!ATTLIST race id ID #REQUIRED>
<!ATTLIST race subid CDATA "">
<!ATTLIST race system CDATA #REQUIRED>
<!ATTLIST race name CDATA #REQUIRED>

<!ATTLIST cat id ID #REQUIRED>
<!ATTLIST cat name CDATA #REQUIRED>
<!ATTLIST cat minimum CDATA #REQUIRED>
<!ATTLIST cat maximum CDATA #REQUIRED>
<!ATTLIST cat baseValue CDATA #IMPLIED>
<!ATTLIST cat incValue CDATA #IMPLIED>
<!ATTLIST cat incAmount CDATA #IMPLIED>

<!ATTLIST unit id ID #REQUIRED>
<!ATTLIST unit typeName CDATA #REQUIRED>
<!ATTLIST unit cat CDATA #REQUIRED>
<!ATTLIST unit unitPoints CDATA "0">
<!ATTLIST unit points CDATA #REQUIRED>
<!ATTLIST unit race CDATA "">
<!ATTLIST unit minNum CDATA "0">
<!ATTLIST unit maxNum CDATA "-1">
<!ATTLIST unit minSize CDATA "5">
<!ATTLIST unit maxSize CDATA "-1">
<!ATTLIST unit baseSize CDATA "0">

<!ATTLIST unitCat catID CDATA #REQUIRED>
<!ATTLIST unitCat catCost CDATA "1">

<!ATTLIST stats statSet CDATA "">

<!ATTLIST stat name CDATA #REQUIRED>

<!ATTLIST unitEquipmentItem id CDATA #REQUIRED>
<!ATTLIST unitEquipmentItem required (true|false) "false">
<!ATTLIST unitEquipmentItem exclusivityGroup CDATA "">
<!ATTLIST unitEquipmentItem roundDirection (up|down) "up">

<!ATTLIST equipmentItem id ID #REQUIRED>
<!ATTLIST equipmentItem name CDATA #REQUIRED>
<!ATTLIST equipmentItem cost CDATA #REQUIRED>
<!ATTLIST equipmentItem min CDATA "-1">
<!ATTLIST equipmentItem max CDATA "-1">
<!ATTLIST equipmentItem armourType (None|Shield|LightArmour|LightArmourShield|HeavyArmour|HeavyArmourShield|Barding|BardingShield|BardingLightArmour|BardingLightArmourShield|BardingHeavyArmour|BardingHeavyArmourShield) "None">

<!ATTLIST ability id ID #REQUIRED>
<!ATTLIST ability name CDATA #REQUIRED>