be.saltwater.jaqel.creature.loaders
Class XMLWeaponLoader
java.lang.Object
be.saltwater.jaqel.loaders.ModelLoader
be.saltwater.jaqel.creature.loaders.XMLWeaponLoader
- All Implemented Interfaces:
- WeaponLoader
- public class XMLWeaponLoader
- extends ModelLoader
- implements WeaponLoader
|
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XMLWeaponLoader
public XMLWeaponLoader()
throws javax.xml.parsers.ParserConfigurationException
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