Class MasterKey

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

public class MasterKey extends HouseKey
A GM only item to help in checking houses. Opens any door that can be used with HouseKey.
  • Constructor Details

  • Method Details

    • matches

      public boolean matches(String houseId, int number)
      Description copied from class: HouseKey
      Check if the key matches a portal.
      Overrides:
      matches in class HouseKey
      Parameters:
      houseId - identifier of the portal
      number - number of the lock
      Returns:
      true if the key fits the lock, false otherwise
    • setup

      public void setup(String id, int lockNumber, String owner)
      Description copied from class: HouseKey
      Set the parameters of the key.
      Overrides:
      setup in class HouseKey
      Parameters:
      id - the portal identifier
      lockNumber - the number of the lock
      owner - the owner of the house