Class DoorFactory
java.lang.Object
games.stendhal.server.entity.mapstuff.portal.DoorFactory
- All Implemented Interfaces:
ConfigurableFactory
- Direct Known Subclasses:
LockedDoorFactory
,OnePlayerRoomDoorFactory
A base factory for
Door
objects.-
Constructor Details
-
DoorFactory
public DoorFactory()
-
-
Method Details
-
getClass
Extract the door class from a context.- Parameters:
ctx
- The configuration context.- Returns:
- The class name.
- Throws:
IllegalArgumentException
- If the class attribute is missing.
-
getRejectedMessage
Extract the rejected message from a context.- Parameters:
ctx
- The configuration context.- Returns:
- The rejected message, or
null
if none. - Throws:
IllegalArgumentException
- If the class attribute is missing.
-