Class LockedDoorFactory
java.lang.Object
games.stendhal.server.entity.mapstuff.portal.DoorFactory
games.stendhal.server.entity.mapstuff.portal.LockedDoorFactory
- All Implemented Interfaces:
ConfigurableFactory
- Direct Known Subclasses:
KeyDestroyingDoorFactory
A factory for
LockedDoor
objects.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionCreate a locked door.protected String
Extract the portal key from a context.Methods inherited from class games.stendhal.server.entity.mapstuff.portal.DoorFactory
getClass, getRejectedMessage
-
Constructor Details
-
LockedDoorFactory
public LockedDoorFactory()
-
-
Method Details
-
getKey
Extract the portal key from a context.- Parameters:
ctx
- The configuration context.- Returns:
- The key name.
- Throws:
IllegalArgumentException
- If the class attribute is missing.
-
create
Create a locked door.- Parameters:
ctx
- Configuration context.- Returns:
- A LockedDoor.
- Throws:
IllegalArgumentException
- If there is a problem with the attributes. The exception message should be a value suitable for meaningful user interpretation.- See Also:
LockedDoor
-