Class OnePlayerRoomDoorFactory

java.lang.Object
games.stendhal.server.entity.mapstuff.portal.DoorFactory
games.stendhal.server.entity.mapstuff.portal.OnePlayerRoomDoorFactory
All Implemented Interfaces:
ConfigurableFactory

public class OnePlayerRoomDoorFactory extends DoorFactory
A factory for OnePlayerRoomDoor objects.
  • Constructor Details

    • OnePlayerRoomDoorFactory

      public OnePlayerRoomDoorFactory()
  • Method Details

    • create

      public Object create(ConfigurableFactoryContext ctx)
      Create a door that lets one player at a time to enter.
      Parameters:
      ctx - Configuration context.
      Returns:
      A OnePlayerRoomDoor.
      Throws:
      IllegalArgumentException - If there is a problem with the attributes. The exception message should be a value suitable for meaningful user interpretation.
      See Also:
      OnePlayerRoomDoor