Class PortalSetupDescriptor
java.lang.Object
games.stendhal.server.core.config.zone.SetupDescriptor
games.stendhal.server.core.config.zone.EntitySetupDescriptor
games.stendhal.server.core.config.zone.PortalSetupDescriptor
A portal setup descriptor.
-
Field Summary
Modifier and TypeFieldDescriptionprotected String
protected Object
The named destination portal (if any).protected String
The destination zone name (if any).protected Object
The named portal identifier.protected boolean
Whether replacing an existing portal at that location.Fields inherited from class games.stendhal.server.core.config.zone.EntitySetupDescriptor
attributes, className, x, y
Fields inherited from class games.stendhal.server.core.config.zone.SetupDescriptor
parameters
-
Constructor Summary
ConstructorDescriptionPortalSetupDescriptor(int x, int y, Object identifier)
Create a portal setup descriptor. -
Method Summary
Modifier and TypeMethodDescriptionGet the destination identifier.Get the destination zone.Get the identifier.boolean
Determine if existing portals are replaced.void
setAssociatedZones(String zones)
For house portals.void
setDestination(String zone, Object identifier)
Set the destination zone/identifier.void
setReplacing(boolean replacing)
Set whether to replace any existing portal.void
setup(StendhalRPZone zone)
Do appropriate zone setup.Methods inherited from class games.stendhal.server.core.config.zone.EntitySetupDescriptor
addPort, getAttributes, getImplementation, getX, getY, setAttribute, setConnectorName, setImplementation
Methods inherited from class games.stendhal.server.core.config.zone.SetupDescriptor
getParameters, setParameter
-
Field Details
-
identifier
The named portal identifier. -
destinationZone
The destination zone name (if any). -
associatedZones
-
destinationIdentifier
The named destination portal (if any). -
replacing
protected boolean replacingWhether replacing an existing portal at that location.
-
-
Constructor Details
-
PortalSetupDescriptor
Create a portal setup descriptor.- Parameters:
x
- The X coordinate.y
- The Y coordinate.identifier
- The identifier,
-
-
Method Details
-
getDestinationIdentifier
Get the destination identifier.- Returns:
- An identifier.
-
getDestinationZone
Get the destination zone.- Returns:
- A zone name.
-
getIdentifier
Get the identifier.- Returns:
- An identifier.
-
isReplacing
public boolean isReplacing()Determine if existing portals are replaced.- Returns:
true
if replacing an existing portal at that location.
-
setDestination
Set the destination zone/identifier.- Parameters:
zone
- The destination zone name.identifier
- The named destination portal.
-
setReplacing
public void setReplacing(boolean replacing)Set whether to replace any existing portal.- Parameters:
replacing
- Whether replacing an existing portal at that location.
-
setAssociatedZones
For house portals. -
setup
Do appropriate zone setup.- Overrides:
setup
in classEntitySetupDescriptor
- Parameters:
zone
- The zone.
-