Code Search for Developers
 
 
  

battle.dtd from Thousand Parsec at Krugle


Show battle.dtd syntax highlighted

<!ELEMENT battle (sides, rounds) >
<!ATTLIST battle version CDATA #REQUIRED >
<!ATTLIST battle media CDATA #REQUIRED >

<!-- Who is in the battle -->
<!ELEMENT sides (side+) >
<!ELEMENT side (entity+) >
<!ATTLIST side id ID #REQUIRED >
<!ELEMENT entity (name, type?, description?, note*) >
<!-- 
<!ELEMENT model (#PCDATA) >
<!ELEMENT deathmedia (#PCDATA) >
<!ELEMENT firing (#PCDATA) >
<!ELEMENT weapontype (#PCDATA) >
<!ELEMENT weaponpoints (pixel+)>
<!ELEMENT pixel (#PCDATA) >
<!ELEMENT weapon (#PCDATA) >

<!ELEMENT entity (name, model, deathmedia?, firing?, weaponpoints?, weapontype?, weapon?) > 
-->
<!ATTLIST entity id ID #REQUIRED >
<!ELEMENT name (#PCDATA) >
<!ELEMENT description (#PCDATA) >
<!ELEMENT note (#PCDATA) >

<!-- What happened in the battle -->
<!ELEMENT rounds (round+) >
<!ELEMENT round (log*, move*, (fire | damage | death)* ) >
<!ATTLIST round number NMTOKEN #REQUIRED >

<!-- Possible actions which can occur -->
<!ELEMENT log (#PCDATA) >
<!ELEMENT move (reference, position) >
<!ELEMENT fire (source, destination) >
<!ELEMENT damage (reference, amount) >
<!ELEMENT death (reference) >

<!-- Arguments for the actions -->
<!ELEMENT reference EMPTY >
<!ATTLIST reference ref IDREF #REQUIRED >
<!ELEMENT position (#PCDATA) >
<!ELEMENT source EMPTY>
<!ATTLIST source ref IDREF #REQUIRED >
<!ELEMENT destination EMPTY>
<!ATTLIST destination ref IDREF #REQUIRED >
<!ELEMENT amount (#PCDATA) >




See more files for this project here

Thousand Parsec

Thousand Parsec is a framework for turn based 4 X\'s game (eXplore, eXpand, eXploit, eXterminate). Designed for long games, supporting massive universes and has an easily expanded tech tree.

Project homepage: http://sourceforge.net/projects/thousandparsec
Programming language(s): C++,Python
License: other

  doc/
    relationship overview.dia
    relationship overview.png
  entities/
    __init__.py
    basicentity.py
    damageanimation.py
    laserblast.py
    message.py
    summaryscreen.py
  fonts/
    VeraMoBd.ttf
  minisec/
    battleship/
      model.png
    frigate/
      model.png
    planet/
      model.png
    scout/
      model.png
    types.xml
  tests/
    background.png
    battle1.xml
    battle2.xml
    battle3.xml
    battle4.xml
    battle5.xml
    battle6.xml
    damage_test.py
    laser_test.py
    ocemp_event_test.py
  BATTLEFORMAT
  README
  TODO
  WISHLIST
  actions.py
  battle.dtd
  battlecontroller.py
  battleparser.py
  battleview.py
  battleviewer.tailor
  constants.py
  example1.xml
  requirements.py
  run_battleviewer.py
  states.py
  utility.py
  weapons.py