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
-
Method Summary
Modifier and TypeMethodDescriptionprotected EntitySetupDescriptor
Create a setup descriptor from XML data.protected PortalSetupDescriptor
Create a portal setup descriptor.protected void
readDestination(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, readImplementation
Methods 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:
read
in classEntitySetupXMLReader
- Parameters:
element
- The descriptor XML element.x
- The X coordinate.y
- The Y coordinate.- Returns:
- A setup descriptor, or
null
if invalid.
-