be.saltwater.jaqel.creature.loaders
Class XMLWeaponLoader

java.lang.Object
  extended bybe.saltwater.jaqel.loaders.ModelLoader
      extended bybe.saltwater.jaqel.creature.loaders.XMLWeaponLoader
All Implemented Interfaces:
WeaponLoader

public class XMLWeaponLoader
extends ModelLoader
implements WeaponLoader


Constructor Summary
XMLWeaponLoader()
           
 
Method Summary
 WeaponTypeData interpretWeapon(org.w3c.dom.Node root_node, java.lang.String model_base, java.lang.String key)
           
 WeaponTypeData load(java.lang.String filename, java.lang.String key)
          Implementation of WeaponLoader.load for this format (XML)
 
Methods inherited from class be.saltwater.jaqel.loaders.ModelLoader
loadAppearance, loadGeometryArray, loadScene, loadShape
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLWeaponLoader

public XMLWeaponLoader()
                throws javax.xml.parsers.ParserConfigurationException
Method Detail

load

public WeaponTypeData load(java.lang.String filename,
                           java.lang.String key)
                    throws java.io.IOException,
                           IllegalFormatException
Implementation of WeaponLoader.load for this format (XML)

Specified by:
load in interface WeaponLoader
Throws:
IllegalFormatException - When the format of the file is not as expected
java.io.IOException - When there was a problem reading the specified file

interpretWeapon

public WeaponTypeData interpretWeapon(org.w3c.dom.Node root_node,
                                      java.lang.String model_base,
                                      java.lang.String key)
                               throws java.io.IOException,
                                      IllegalFormatException
Throws:
java.io.IOException
IllegalFormatException