Class OnePlayerAreaFactory
java.lang.Object
games.stendhal.server.entity.mapstuff.area.OnePlayerAreaFactory
- All Implemented Interfaces:
ConfigurableFactory
A base factory for
OnePlayerArea
objects.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionCreate a damaging area.protected int
Extracts the height from context.protected int
Extracts the width from context.
-
Constructor Details
-
OnePlayerAreaFactory
public OnePlayerAreaFactory()
-
-
Method Details
-
getHeight
Extracts the height from context.- Parameters:
ctx
- The configuration context.- Returns:
- The height, 1 if unspecified.
-
getWidth
Extracts the width from context.- Parameters:
ctx
- The configuration context.- Returns:
- The width, 1 if unspecified.
-
create
Create a damaging area.- Specified by:
create
in interfaceConfigurableFactory
- Parameters:
ctx
- Configuration context.- Returns:
- A OnePlayerArea.
- See Also:
OnePlayerArea
-