Changeset 087498f062c5030bbd246e42f13a11c90f15e810
- Timestamp:
- 09/09/07 16:40:08
(1 year ago)
- Author:
- Christopher Jung <bktheg@web.de>
- git-committer:
- Christopher Jung <bktheg@web.de> 1189348808 +0200
- git-parent:
[637194c57b175f8db11274472536bb99e6bd86e0]
- git-author:
- Christopher Jung <bktheg@web.de> 1189348808 +0200
- Message:
Weitere Konsistenzpruefungen bei Items ergaenzt
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| rd499c3e |
r087498f |
|
| 76 | 76 | NodeList nodes = XMLUtils.getNodesByXPath(effectNode, "slot"); |
|---|
| 77 | 77 | for( int i=0, length=nodes.getLength(); i < length; i++ ) { |
|---|
| 78 | | slots.add(XMLUtils.getStringAttribute(nodes.item(i), "id")); |
|---|
| | 78 | final String slot = XMLUtils.getStringAttribute(nodes.item(i), "id"); |
|---|
| | 79 | if( ModuleSlots.get().slot(slot) == null ) { |
|---|
| | 80 | throw new Exception("Item-Effekt Modul: Ungueltige Slot-ID '"+slot+"'"); |
|---|
| | 81 | } |
|---|
| | 82 | slots.add(slot); |
|---|
| 79 | 83 | } |
|---|
| 80 | 84 | |
|---|
| rc62d407 |
r087498f |
|
| 79 | 79 | public ShipTypeChangeset(Node node) { |
|---|
| 80 | 80 | final String NAMESPACE = "http://www.drifting-souls.net/ds2/shipdata/2006"; |
|---|
| | 81 | boolean found = false; |
|---|
| 81 | 82 | |
|---|
| 82 | 83 | NodeList nodes = node.getChildNodes(); |
|---|
| … | … | |
| 91 | 92 | continue; |
|---|
| 92 | 93 | } |
|---|
| | 94 | |
|---|
| | 95 | found = true; |
|---|
| 93 | 96 | |
|---|
| 94 | 97 | String name = item.getLocalName(); |
|---|
| … | … | |
| 216 | 219 | throw new RuntimeException("Unbekannte Changeset-Eigenschaft '"+name+"'"); |
|---|
| 217 | 220 | } |
|---|
| | 221 | } |
|---|
| | 222 | |
|---|
| | 223 | if( !found ) { |
|---|
| | 224 | throw new RuntimeException("Keine Shiptype-Changeset-Informationen vorhanden"); |
|---|
| 218 | 225 | } |
|---|
| 219 | 226 | } |
|---|
| r47c6b21 |
r087498f |
|
| 22 | 22 | <boot class="net.driftingsouls.ds2.server.config.Systems" type="static" /> |
|---|
| 23 | 23 | <boot class="net.driftingsouls.ds2.server.config.ResourceConfig" type="static" /> |
|---|
| | 24 | <boot class="net.driftingsouls.ds2.server.config.ModuleSlots" type="static" /> |
|---|
| 24 | 25 | <boot class="net.driftingsouls.ds2.server.config.Items" type="static" /> |
|---|
| 25 | 26 | <boot class="net.driftingsouls.ds2.server.config.Weapons" type="static" /> |
|---|
| 26 | | <boot class="net.driftingsouls.ds2.server.config.ModuleSlots" type="static" /> |
|---|
| 27 | 27 | <boot class="net.driftingsouls.ds2.server.config.Medals" type="static" /> |
|---|
| 28 | 28 | <boot class="net.driftingsouls.ds2.server.config.Faction" type="static" /> |
|---|