be.saltwater.jaqel.creature.loaders
Interface WeaponLoader
- All Known Implementing Classes:
- XMLWeaponLoader
- public interface WeaponLoader
Interface for the loading of weapon files. WeaponLoadHelper stores what weapons are already loaded. Therefore you should use WeaponLoadHelper and not this interface, otherwise you could possibly load the same file multiple times.
- Author:
- Bruno Windels
- See Also:
WeaponLoadHelper,
Weapon
|
Method Summary |
WeaponTypeData |
load(java.lang.String filename,
java.lang.String key)
Loads the file. |
load
public WeaponTypeData load(java.lang.String filename,
java.lang.String key)
throws java.io.IOException,
IllegalFormatException
- Loads the file.
- Throws:
java.io.IOException - When there was a problem reading the specified file
IllegalFormatException - When the format of the file is not as expected