Class CreatureGroupsXMLLoader
java.lang.Object
org.xml.sax.helpers.DefaultHandler
games.stendhal.server.core.config.CreatureGroupsXMLLoader
- All Implemented Interfaces:
ContentHandler
,DTDHandler
,EntityResolver
,ErrorHandler
Load and configure creatures via an XML configuration file.
-
Field Summary
-
Constructor Summary
ConstructorDescriptionCreate an xml based loader of creature groups.CreatureGroupsXMLLoader(URI uri)
Create an xml based loader of creature groups. -
Method Summary
Methods inherited from class org.xml.sax.helpers.DefaultHandler
characters, endDocument, endElement, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startElement, startPrefixMapping, unparsedEntityDecl, warning
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.xml.sax.ContentHandler
declaration
-
Field Details
-
uri
The main zone configuration file.
-
-
Constructor Details
-
CreatureGroupsXMLLoader
Create an xml based loader of creature groups.- Parameters:
uri
- The location of the configuration file.
-
CreatureGroupsXMLLoader
Create an xml based loader of creature groups.- Parameters:
uri
- The location of the configuration file.
-
-
Method Details
-
load
Loads creatures- Returns:
- list of all creatures.
-