Code Search for Developers
 
 
  

battle5.xml from Thousand Parsec at Krugle


Show battle5.xml syntax highlighted

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