Class ConditionAndActionAreaFactory
java.lang.Object
games.stendhal.server.entity.mapstuff.area.ConditionAndActionAreaFactory
- All Implemented Interfaces:
ConfigurableFactory
A base factory for
ConditionAndActionArea
objects.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionCreate a damaging area.protected ChatAction
protected ChatCondition
protected int
Extracts the height from context.protected int
Extracts the width from context.
-
Constructor Details
-
ConditionAndActionAreaFactory
public ConditionAndActionAreaFactory()
-
-
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.
-
getAction
-
getCondition
-
create
Create a damaging area.- Specified by:
create
in interfaceConfigurableFactory
- Parameters:
ctx
- Configuration context.- Returns:
- A OnePlayerArea.
- See Also:
OnePlayerArea
-