view dtds/system.dtd @ 6:150a5669cd7b

Re #9 - more granular loading * Remove SystemStatsSet class so that other classes don't know the internals of how GameSystem stores its stats (cleaner code principle) * Make XML loader each stats set and add to the game system * Add methods to GameSystem to remove use of SystemStatsSet and hide internal handling * Add methods to add SystemStats to GameSystem
author IBBoard <dev@ibboard.co.uk>
date Sun, 04 Jan 2009 12:13:59 +0000
parents 163b35f875ef
children
line wrap: on
line source

<!ELEMENT system (categories,sysStatsList)>
<!ELEMENT categories (cat+)>
<!ELEMENT cat EMPTY>
<!ELEMENT sysStatsList (sysStats+)>
<!ELEMENT sysStats (sysStat+)>
<!ELEMENT sysStat EMPTY>

<!ATTLIST system id ID #REQUIRED>
<!ATTLIST system name CDATA #REQUIRED>
<!ATTLIST system warn (true|false) "false">
<!ATTLIST system allowAllies (true|false) "true">
<!ATTLIST system isRosterBased (true|false) "false">

<!ATTLIST cat id ID #REQUIRED>
<!ATTLIST cat name CDATA #REQUIRED>
<!ATTLIST cat minPoints CDATA "0">
<!ATTLIST cat maxPoints CDATA "-1">
<!ATTLIST cat minPercentage CDATA "0">
<!ATTLIST cat maxPercentage CDATA "100">
<!ATTLIST cat minChoices CDATA "0">
<!ATTLIST cat maxChoices CDATA "-1">
<!ATTLIST cat baseValue CDATA "0">
<!ATTLIST cat incValue CDATA "0">
<!ATTLIST cat incAmount CDATA "0">

<!ATTLIST sysStatsList defaultStats CDATA #REQUIRED>

<!ATTLIST sysStats id ID #REQUIRED>

<!ATTLIST sysStat name CDATA #REQUIRED>