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
FieldsModifier and TypeFieldDescriptionThe generic entity attributes.protected StringThe [logical] class name of the implementation.protected intThe entity's X coordinate.protected intThe entity's Y coordinate.Fields inherited from class games.stendhal.server.core.config.zone.SetupDescriptor
parameters -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidadds a portGet the generic entity attributes.Get the implementation class name.intgetX()Get the X coordinate.intgetY()Get the Y coordinate.voidsetAttribute(String name, String value) Set a generic entity attribute.voidsetConnectorName(String connectorName) sets the connection namevoidsetImplementation(String className) Set the implementation class name.voidsetup(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:
setupin classSetupDescriptor- Parameters:
zone- The zone.
-