Class OrangeKey

All Implemented Interfaces:
Tile

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

    • OrangeKey

      public OrangeKey(TileInfo info)
      Create a orange 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