Class ConditionAndActionAreaFactory
java.lang.Object
games.stendhal.server.entity.mapstuff.area.ConditionAndActionAreaFactory
- All Implemented Interfaces:
ConfigurableFactory
A base factory for
ConditionAndActionArea objects.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCreate a damaging area.protected ChatActionprotected ChatConditionprotected intExtracts the height from context.protected intExtracts 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:
createin interfaceConfigurableFactory- Parameters:
ctx- Configuration context.- Returns:
- A OnePlayerArea.
- See Also:
OnePlayerArea
-