Class OnePlayerRoomDoor

All Implemented Interfaces:
TurnListener, UseListener, Killer, Cloneable, Iterable<String>, Serializable

public class OnePlayerRoomDoor extends Door
A door to a zone which only one player may enter.
Author:
hendrik
  • Constructor Details

    • OnePlayerRoomDoor

      public OnePlayerRoomDoor(String clazz)
      Creates a new OnePlayerRoomDoor.
      Parameters:
      clazz - clazz
  • Method Details

    • isAllowed

      protected boolean isAllowed(RPEntity user)
      Description copied from class: AccessCheckingPortal
      Determine if this portal can be used.
      Specified by:
      isAllowed in class AccessCheckingPortal
      Parameters:
      user - The user to be checked.
      Returns:
      true if the user can use the portal.