annotate testdata/race-with-non-existant-ability.racex @ 36:82cd08385bfe

Fixes #228: Crash on invalid ability ID * Replace zipped Race and System files with unpackaged XML * Add helper class to create WarFoundry objects from XML files for tests * Use new helper classes to make test pass
author IBBoard <dev@ibboard.co.uk>
date Thu, 24 Dec 2009 20:14:28 +0000
parents
children c642d217036e
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
36
82cd08385bfe Fixes #228: Crash on invalid ability ID
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1 <?xml version="1.0" encoding="UTF-8"?>
82cd08385bfe Fixes #228: Crash on invalid ability ID
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2 <race xmlns="http://ibboard.co.uk/warfoundry/race" xmlns:core="http://ibboard.co.uk/warfoundry/core" id="Empire" name="Empire" system="nonexistant">
82cd08385bfe Fixes #228: Crash on invalid ability ID
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3 <units>
82cd08385bfe Fixes #228: Crash on invalid ability ID
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
4 <unit id="Empire1" typeName="Empire General" cat="cat1" points="100" maxNum="1" maxSize="1">
82cd08385bfe Fixes #228: Crash on invalid ability ID
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
5 <stats>
82cd08385bfe Fixes #228: Crash on invalid ability ID
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
6 <stat name="M">4</stat>
82cd08385bfe Fixes #228: Crash on invalid ability ID
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
7 <stat name="WS">6</stat>
82cd08385bfe Fixes #228: Crash on invalid ability ID
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
8 <stat name="BS">6</stat>
82cd08385bfe Fixes #228: Crash on invalid ability ID
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
9 <stat name="S">4</stat>
82cd08385bfe Fixes #228: Crash on invalid ability ID
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
10 <stat name="T">4</stat>
82cd08385bfe Fixes #228: Crash on invalid ability ID
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
11 <stat name="W">3</stat>
82cd08385bfe Fixes #228: Crash on invalid ability ID
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
12 <stat name="I">6</stat>
82cd08385bfe Fixes #228: Crash on invalid ability ID
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
13 <stat name="A">4</stat>
82cd08385bfe Fixes #228: Crash on invalid ability ID
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
14 <stat name="Ld">9</stat>
82cd08385bfe Fixes #228: Crash on invalid ability ID
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
15 </stats>
82cd08385bfe Fixes #228: Crash on invalid ability ID
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
16 <unitAbilities>
82cd08385bfe Fixes #228: Crash on invalid ability ID
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
17 <unitAbility abilityID="leaderOfMen"/>
82cd08385bfe Fixes #228: Crash on invalid ability ID
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
18 </unitAbilities>
82cd08385bfe Fixes #228: Crash on invalid ability ID
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
19 </unit>
82cd08385bfe Fixes #228: Crash on invalid ability ID
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
20 </units>
82cd08385bfe Fixes #228: Crash on invalid ability ID
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
21 <equipment>
82cd08385bfe Fixes #228: Crash on invalid ability ID
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
22 <equipmentItem id="equip1" name="sword" cost="1"/>
82cd08385bfe Fixes #228: Crash on invalid ability ID
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
23 <equipmentItem id="equip2" name="shield" cost="1"/>
82cd08385bfe Fixes #228: Crash on invalid ability ID
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
24 <equipmentItem id="equip3" name="broadsword" cost="2" />
82cd08385bfe Fixes #228: Crash on invalid ability ID
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
25 <equipmentItem id="equip4" name="Standard Guns" cost="3" />
82cd08385bfe Fixes #228: Crash on invalid ability ID
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
26 <equipmentItem id="equip5" name="Special Guns" cost="5" />
82cd08385bfe Fixes #228: Crash on invalid ability ID
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
27 <equipmentItem id="equip6" name="Long Gun" cost="4" />
82cd08385bfe Fixes #228: Crash on invalid ability ID
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
28 <equipmentItem id="equip7" name="Big Gun" cost="8" />
82cd08385bfe Fixes #228: Crash on invalid ability ID
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
29 <equipmentItem id="equip8" name="Quick Gun" cost="6" />
82cd08385bfe Fixes #228: Crash on invalid ability ID
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
30 </equipment>
82cd08385bfe Fixes #228: Crash on invalid ability ID
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
31 </race>