Class PortalSetupXMLReader
java.lang.Object
games.stendhal.server.core.config.zone.SetupXMLReader
games.stendhal.server.core.config.zone.EntitySetupXMLReader
games.stendhal.server.core.config.zone.PortalSetupXMLReader
A portal entity setup xml reader.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected EntitySetupDescriptorCreate a setup descriptor from XML data.protected PortalSetupDescriptorCreate a portal setup descriptor.protected voidreadDestination(PortalSetupDescriptor desc, Element element) Read destination information from an XML element.Methods inherited from class games.stendhal.server.core.config.zone.EntitySetupXMLReader
read, readAttributes, readConnector, readImplementationMethods inherited from class games.stendhal.server.core.config.zone.SetupXMLReader
readParameters
-
Constructor Details
-
PortalSetupXMLReader
public PortalSetupXMLReader()
-
-
Method Details
-
read
Create a portal setup descriptor.- Parameters:
element- The entity setup XML element.x- The X coordinate.y- The Y coordinate.identifier- The portal identifier.- Returns:
- A portal setup descriptor.
-
readDestination
Read destination information from an XML element.- Parameters:
desc- The descriptor to load.element- The XML element.
-
read
Create a setup descriptor from XML data.- Overrides:
readin classEntitySetupXMLReader- Parameters:
element- The descriptor XML element.x- The X coordinate.y- The Y coordinate.- Returns:
- A setup descriptor, or
nullif invalid.
-