All Implemented Interfaces:
Tile
Direct Known Subclasses:
BlueKey, GreenKey, OrangeKey, YellowKey

public abstract class Key extends Item
This is an abstract class for all kinds of keys, and each key must have a KeyColor enum associated with it.
  • Constructor Details

    • Key

      public Key(TileInfo info)
      constructor for a key.
      Parameters:
      info - instance of tileInfo for a key
  • Method Details

    • color

      public abstract Key.KeyColor color()
      return the colour of the key.
      Returns:
      the KeyColor of the key