Class EntitySetupDescriptor
java.lang.Object
games.stendhal.server.core.config.zone.SetupDescriptor
games.stendhal.server.core.config.zone.EntitySetupDescriptor
- Direct Known Subclasses:
PortalSetupDescriptor
A generic entity setup descriptor.
-
Field Summary
Modifier and TypeFieldDescriptionThe generic entity attributes.protected String
The [logical] class name of the implementation.protected int
The entity's X coordinate.protected int
The entity's Y coordinate.Fields inherited from class games.stendhal.server.core.config.zone.SetupDescriptor
parameters
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
adds a portGet the generic entity attributes.Get the implementation class name.int
getX()
Get the X coordinate.int
getY()
Get the Y coordinate.void
setAttribute(String name, String value)
Set a generic entity attribute.void
setConnectorName(String connectorName)
sets the connection namevoid
setImplementation(String className)
Set the implementation class name.void
setup(StendhalRPZone zone)
Do appropriate zone setup.Methods inherited from class games.stendhal.server.core.config.zone.SetupDescriptor
getParameters, setParameter
-
Field Details
-
x
protected int xThe entity's X coordinate. -
y
protected int yThe entity's Y coordinate. -
className
The [logical] class name of the implementation. -
attributes
The generic entity attributes.
-
-
Constructor Details
-
EntitySetupDescriptor
public EntitySetupDescriptor(int x, int y)Create an entity setup descriptor.- Parameters:
x
- The X coordinate.y
- The Y coordinate.
-
-
Method Details
-
getAttributes
Get the generic entity attributes.- Returns:
- A map of entity attributes.
-
getImplementation
Get the implementation class name.- Returns:
- The [logical] class name for the implementation.
-
getX
public int getX()Get the X coordinate.- Returns:
- The entity's X coordinate.
-
getY
public int getY()Get the Y coordinate.- Returns:
- The entity's Y coordinate.
-
setAttribute
Set a generic entity attribute.- Parameters:
name
- An attribute name.value
- An attribute value.
-
setImplementation
Set the implementation class name.- Parameters:
className
- The [logical] class name for the implementation.
-
setConnectorName
sets the connection name- Parameters:
connectorName
- name
-
addPort
adds a port- Parameters:
key
- keyexpression
- expression
-
setup
Do appropriate zone setup.- Specified by:
setup
in classSetupDescriptor
- Parameters:
zone
- The zone.
-