Class YellowKey

All Implemented Interfaces:
Tile

public class YellowKey extends Key
A class representing yellow key which when picked up by hero, can be used to unlock yellow locks.
  • Constructor Details

    • YellowKey

      public YellowKey(TileInfo info)
      Create a yellow key.
      Parameters:
      info - tile information
  • Method Details

    • type

      public TileType type()
      Description copied from interface: Tile
      Each tile object will hold a reference to one TileState enum, which determines the behaviour of a number of the tiles important methods.
      Returns:
      the enum type of this tile, if custom tile then TileType.Other is returned.
    • color

      public Key.KeyColor color()
      Description copied from class: Key
      return the colour of the key.
      Specified by:
      color in class Key
      Returns:
      the KeyColor of the key