Code Search for Developers
 
 
  

battle3.xml from Thousand Parsec at Krugle


Show battle3.xml syntax highlighted

<battle media="minisec" version="0.0.1">
  <sides>
    <side name="tim">
      <entity id="tim-battleship-0">
        <name>tim-battleship-0</name>
        <type>battleship</type>
      </entity><entity id="tim-battleship-1">
        <name>tim-battleship-1</name>
        <type>battleship</type>
      </entity><entity id="tim-battleship-2">
        <name>tim-battleship-2</name>
        <type>battleship</type>
      </entity><entity id="tim-battleship-3">
        <name>tim-battleship-3</name>
        <type>battleship</type>
      </entity><entity id="tim-battleship-4">
        <name>tim-battleship-4</name>
        <type>battleship</type>
      </entity>
    </side><side name="lee">
      <entity id="lee-battleship-0">
        <name>lee-battleship-0</name>
        <type>battleship</type>
      </entity><entity id="lee-battleship-1">
        <name>lee-battleship-1</name>
        <type>battleship</type>
      </entity><entity id="lee-battleship-2">
        <name>lee-battleship-2</name>
        <type>battleship</type>
      </entity><entity id="lee-battleship-3">
        <name>lee-battleship-3</name>
        <type>battleship</type>
      </entity><entity id="lee-battleship-4">
        <name>lee-battleship-4</name>
        <type>battleship</type>
      </entity>
    </side><side name="jlp">
      <entity id="jlp-battleship-0">
        <name>jlp-battleship-0</name>
        <type>battleship</type>
      </entity><entity id="jlp-battleship-1">
        <name>jlp-battleship-1</name>
        <type>battleship</type>
      </entity><entity id="jlp-battleship-2">
        <name>jlp-battleship-2</name>
        <type>battleship</type>
      </entity><entity id="jlp-battleship-3">
        <name>jlp-battleship-3</name>
        <type>battleship</type>
      </entity><entity id="jlp-battleship-4">
        <name>jlp-battleship-4</name>
        <type>battleship</type>
      </entity>
    </side>
  </sides><rounds>
    <round no="0">
      <log>lee choose Paper.</log>
      <log>tim choose Paper.</log>
      <log>Round was a draw!</log>
      <fire>
        <source ref="lee-battleship-0" />
        <destination ref="tim-battleship-0" />
      </fire><damage>
        <reference ref="tim-battleship-0" />
        <amount>1</amount>
      </damage><fire>
        <source ref="lee-battleship-1" />
        <destination ref="tim-battleship-1" />
      </fire><damage>
        <reference ref="tim-battleship-1" />
        <amount>1</amount>
      </damage><fire>
        <source ref="lee-battleship-2" />
        <destination ref="tim-battleship-2" />
      </fire><damage>
        <reference ref="tim-battleship-2" />
        <amount>1</amount>
      </damage><fire>
        <source ref="lee-battleship-3" />
        <destination ref="tim-battleship-3" />
      </fire><damage>
        <reference ref="tim-battleship-3" />
        <amount>1</amount>
      </damage><fire>
        <source ref="lee-battleship-4" />
        <destination ref="tim-battleship-4" />
      </fire><damage>
        <reference ref="tim-battleship-4" />
        <amount>1</amount>
      </damage><fire>
        <source ref="tim-battleship-0" />
        <destination ref="lee-battleship-0" />
      </fire><damage>
        <reference ref="lee-battleship-0" />
        <amount>1</amount>
      </damage><fire>
        <source ref="tim-battleship-1" />
        <destination ref="lee-battleship-1" />
      </fire><damage>
        <reference ref="lee-battleship-1" />
        <amount>1</amount>
      </damage><fire>
        <source ref="tim-battleship-2" />
        <destination ref="lee-battleship-2" />
      </fire><damage>
        <reference ref="lee-battleship-2" />
        <amount>1</amount>
      </damage><fire>
        <source ref="tim-battleship-3" />
        <destination ref="lee-battleship-3" />
      </fire><damage>
        <reference ref="lee-battleship-3" />
        <amount>1</amount>
      </damage><fire>
        <source ref="tim-battleship-4" />
        <destination ref="lee-battleship-4" />
      </fire><damage>
        <reference ref="lee-battleship-4" />
        <amount>1</amount>
      </damage>
    </round><round no="1">
      <log>jlp choose Scissors.</log>
      <log>tim choose Scissors.</log>
      <log>Round was a draw!</log>
      <fire>
        <source ref="jlp-battleship-0" />
        <destination ref="tim-battleship-0" />
      </fire><damage>
        <reference ref="tim-battleship-0" />
        <amount>1</amount>
      </damage><fire>
        <source ref="jlp-battleship-1" />
        <destination ref="tim-battleship-1" />
      </fire><damage>
        <reference ref="tim-battleship-1" />
        <amount>1</amount>
      </damage><fire>
        <source ref="jlp-battleship-2" />
        <destination ref="tim-battleship-2" />
      </fire><damage>
        <reference ref="tim-battleship-2" />
        <amount>1</amount>
      </damage><fire>
        <source ref="jlp-battleship-3" />
        <destination ref="tim-battleship-3" />
      </fire><damage>
        <reference ref="tim-battleship-3" />
        <amount>1</amount>
      </damage><fire>
        <source ref="jlp-battleship-4" />
        <destination ref="tim-battleship-4" />
      </fire><damage>
        <reference ref="tim-battleship-4" />
        <amount>1</amount>
      </damage><fire>
        <source ref="tim-battleship-0" />
        <destination ref="jlp-battleship-0" />
      </fire><damage>
        <reference ref="jlp-battleship-0" />
        <amount>1</amount>
      </damage><fire>
        <source ref="tim-battleship-1" />
        <destination ref="jlp-battleship-1" />
      </fire><damage>
        <reference ref="jlp-battleship-1" />
        <amount>1</amount>
      </damage><fire>
        <source ref="tim-battleship-2" />
        <destination ref="jlp-battleship-2" />
      </fire><damage>
        <reference ref="jlp-battleship-2" />
        <amount>1</amount>
      </damage><fire>
        <source ref="tim-battleship-3" />
        <destination ref="jlp-battleship-3" />
      </fire><damage>
        <reference ref="jlp-battleship-3" />
        <amount>1</amount>
      </damage><fire>
        <source ref="tim-battleship-4" />
        <destination ref="jlp-battleship-4" />
      </fire><damage>
        <reference ref="jlp-battleship-4" />
        <amount>1</amount>
      </damage>
    </round><round no="2">
      <log>lee choose Scissors.</log>
      <log>tim choose Rock.</log>
      <log>tim won the round!</log>
      <fire>
        <source ref="tim-battleship-0" />
        <destination ref="lee-battleship-0" />
      </fire><damage>
        <reference ref="lee-battleship-0" />
        <amount>3</amount>
      </damage><fire>
        <source ref="tim-battleship-1" />
        <destination ref="lee-battleship-1" />
      </fire><damage>
        <reference ref="lee-battleship-1" />
        <amount>3</amount>
      </damage><fire>
        <source ref="tim-battleship-2" />
        <destination ref="lee-battleship-2" />
      </fire><damage>
        <reference ref="lee-battleship-2" />
        <amount>3</amount>
      </damage><fire>
        <source ref="tim-battleship-3" />
        <destination ref="lee-battleship-3" />
      </fire><damage>
        <reference ref="lee-battleship-3" />
        <amount>3</amount>
      </damage><fire>
        <source ref="tim-battleship-4" />
        <destination ref="lee-battleship-4" />
      </fire><damage>
        <reference ref="lee-battleship-4" />
        <amount>3</amount>
      </damage>
    </round><round no="3">
      <log>tim choose Paper.</log>
      <log>jlp choose Paper.</log>
      <log>Round was a draw!</log>
      <fire>
        <source ref="tim-battleship-0" />
        <destination ref="jlp-battleship-0" />
      </fire><damage>
        <reference ref="jlp-battleship-0" />
        <amount>1</amount>
      </damage><fire>
        <source ref="tim-battleship-1" />
        <destination ref="jlp-battleship-1" />
      </fire><damage>
        <reference ref="jlp-battleship-1" />
        <amount>1</amount>
      </damage><fire>
        <source ref="tim-battleship-2" />
        <destination ref="jlp-battleship-2" />
      </fire><damage>
        <reference ref="jlp-battleship-2" />
        <amount>1</amount>
      </damage><fire>
        <source ref="tim-battleship-3" />
        <destination ref="jlp-battleship-3" />
      </fire><damage>
        <reference ref="jlp-battleship-3" />
        <amount>1</amount>
      </damage><fire>
        <source ref="tim-battleship-4" />
        <destination ref="jlp-battleship-4" />
      </fire><damage>
        <reference ref="jlp-battleship-4" />
        <amount>1</amount>
      </damage><fire>
        <source ref="jlp-battleship-0" />
        <destination ref="tim-battleship-0" />
      </fire><damage>
        <reference ref="tim-battleship-0" />
        <amount>1</amount>
      </damage><fire>
        <source ref="jlp-battleship-1" />
        <destination ref="tim-battleship-1" />
      </fire><damage>
        <reference ref="tim-battleship-1" />
        <amount>1</amount>
      </damage><fire>
        <source ref="jlp-battleship-2" />
        <destination ref="tim-battleship-2" />
      </fire><damage>
        <reference ref="tim-battleship-2" />
        <amount>1</amount>
      </damage><fire>
        <source ref="jlp-battleship-3" />
        <destination ref="tim-battleship-3" />
      </fire><damage>
        <reference ref="tim-battleship-3" />
        <amount>1</amount>
      </damage><fire>
        <source ref="jlp-battleship-4" />
        <destination ref="tim-battleship-4" />
      </fire><damage>
        <reference ref="tim-battleship-4" />
        <amount>1</amount>
      </damage>
    </round><round no="4">
      <log>lee choose Scissors.</log>
      <log>jlp choose Paper.</log>
      <log>jlp won the round!</log>
      <fire>
        <source ref="jlp-battleship-0" />
        <destination ref="lee-battleship-0" />
      </fire><damage>
        <reference ref="lee-battleship-0" />
        <amount>3</amount>
      </damage><death>
        <reference ref="lee-battleship-0" />
      </death><fire>
        <source ref="jlp-battleship-1" />
        <destination ref="lee-battleship-1" />
      </fire><damage>
        <reference ref="lee-battleship-1" />
        <amount>3</amount>
      </damage><death>
        <reference ref="lee-battleship-1" />
      </death><fire>
        <source ref="jlp-battleship-2" />
        <destination ref="lee-battleship-2" />
      </fire><damage>
        <reference ref="lee-battleship-2" />
        <amount>3</amount>
      </damage><death>
        <reference ref="lee-battleship-2" />
      </death><fire>
        <source ref="jlp-battleship-3" />
        <destination ref="lee-battleship-3" />
      </fire><damage>
        <reference ref="lee-battleship-3" />
        <amount>3</amount>
      </damage><death>
        <reference ref="lee-battleship-3" />
      </death><fire>
        <source ref="jlp-battleship-4" />
        <destination ref="lee-battleship-4" />
      </fire><damage>
        <reference ref="lee-battleship-4" />
        <amount>3</amount>
      </damage><death>
        <reference ref="lee-battleship-4" />
      </death><log>lee was knocked out of the battle.</log>
    </round><round no="5">
      <log>jlp choose Rock.</log>
      <log>tim choose Paper.</log>
      <log>tim won the round!</log>
      <fire>
        <source ref="tim-battleship-0" />
        <destination ref="jlp-battleship-0" />
      </fire><damage>
        <reference ref="jlp-battleship-0" />
        <amount>3</amount>
      </damage><fire>
        <source ref="tim-battleship-1" />
        <destination ref="jlp-battleship-1" />
      </fire><damage>
        <reference ref="jlp-battleship-1" />
        <amount>3</amount>
      </damage><fire>
        <source ref="tim-battleship-2" />
        <destination ref="jlp-battleship-2" />
      </fire><damage>
        <reference ref="jlp-battleship-2" />
        <amount>3</amount>
      </damage><fire>
        <source ref="tim-battleship-3" />
        <destination ref="jlp-battleship-3" />
      </fire><damage>
        <reference ref="jlp-battleship-3" />
        <amount>3</amount>
      </damage><fire>
        <source ref="tim-battleship-4" />
        <destination ref="jlp-battleship-4" />
      </fire><damage>
        <reference ref="jlp-battleship-4" />
        <amount>3</amount>
      </damage>
    </round><round no="6">
      <log>tim choose Rock.</log>
      <log>jlp choose Rock.</log>
      <log>Round was a draw!</log>
      <fire>
        <source ref="tim-battleship-0" />
        <destination ref="jlp-battleship-0" />
      </fire><damage>
        <reference ref="jlp-battleship-0" />
        <amount>1</amount>
      </damage><death>
        <reference ref="jlp-battleship-0" />
      </death><fire>
        <source ref="tim-battleship-1" />
        <destination ref="jlp-battleship-1" />
      </fire><damage>
        <reference ref="jlp-battleship-1" />
        <amount>1</amount>
      </damage><death>
        <reference ref="jlp-battleship-1" />
      </death><fire>
        <source ref="tim-battleship-2" />
        <destination ref="jlp-battleship-2" />
      </fire><damage>
        <reference ref="jlp-battleship-2" />
        <amount>1</amount>
      </damage><death>
        <reference ref="jlp-battleship-2" />
      </death><fire>
        <source ref="tim-battleship-3" />
        <destination ref="jlp-battleship-3" />
      </fire><damage>
        <reference ref="jlp-battleship-3" />
        <amount>1</amount>
      </damage><death>
        <reference ref="jlp-battleship-3" />
      </death><fire>
        <source ref="tim-battleship-4" />
        <destination ref="jlp-battleship-4" />
      </fire><damage>
        <reference ref="jlp-battleship-4" />
        <amount>1</amount>
      </damage><death>
        <reference ref="jlp-battleship-4" />
      </death><fire>
        <source ref="jlp-battleship-0" />
        <destination ref="tim-battleship-0" />
      </fire><damage>
        <reference ref="tim-battleship-0" />
        <amount>1</amount>
      </damage><fire>
        <source ref="jlp-battleship-1" />
        <destination ref="tim-battleship-1" />
      </fire><damage>
        <reference ref="tim-battleship-1" />
        <amount>1</amount>
      </damage><fire>
        <source ref="jlp-battleship-2" />
        <destination ref="tim-battleship-2" />
      </fire><damage>
        <reference ref="tim-battleship-2" />
        <amount>1</amount>
      </damage><fire>
        <source ref="jlp-battleship-3" />
        <destination ref="tim-battleship-3" />
      </fire><damage>
        <reference ref="tim-battleship-3" />
        <amount>1</amount>
      </damage><fire>
        <source ref="jlp-battleship-4" />
        <destination ref="tim-battleship-4" />
      </fire><damage>
        <reference ref="tim-battleship-4" />
        <amount>1</amount>
      </damage><log>jlp was knocked out of the battle.</log>
    </round>
  </rounds>
</battle>




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

  background.png
  battle1.xml
  battle2.xml
  battle3.xml
  battle4.xml
  battle5.xml
  battle6.xml
  damage_test.py
  laser_test.py
  ocemp_event_test.py