Class OrangeKey
java.lang.Object
nz.ac.vuw.ecs.swen225.gp6.domain.TileAnatomy.AbstractTile
nz.ac.vuw.ecs.swen225.gp6.domain.TileGroups.Item
nz.ac.vuw.ecs.swen225.gp6.domain.TileGroups.Key
nz.ac.vuw.ecs.swen225.gp6.domain.Tiles.OrangeKey
- All Implemented Interfaces:
Tile
A class representing orange key which when picked up by hero, can be used to unlock orange
locks.
-
Nested Class Summary
Nested classes/interfaces inherited from class nz.ac.vuw.ecs.swen225.gp6.domain.TileGroups.Key
Key.KeyColor -
Field Summary
Fields inherited from class nz.ac.vuw.ecs.swen225.gp6.domain.TileAnatomy.AbstractTile
info -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class nz.ac.vuw.ecs.swen225.gp6.domain.TileGroups.Item
obstructsEnemy, replaceWith, setOnMethods inherited from class nz.ac.vuw.ecs.swen225.gp6.domain.TileAnatomy.AbstractTile
info, symbolMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface nz.ac.vuw.ecs.swen225.gp6.domain.TileAnatomy.Tile
damagesHero, obstructsHero, ping
-
Constructor Details
-
OrangeKey
Create a orange key.- Parameters:
info- tile information
-
-
Method Details
-
type
Description copied from interface:TileEach 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
Description copied from class:Keyreturn the colour of the key.
-