Class Key
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
- All Implemented Interfaces:
Tile
This is an abstract class for all kinds of keys, and each key must have a KeyColor enum
associated with it.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumenum for matching doors and keys, to avoid for checking for types. -
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, type
-
Constructor Details
-
Key
constructor for a key.- Parameters:
info- instance of tileInfo for a key
-
-
Method Details
-
color
return the colour of the key.- Returns:
- the KeyColor of the key
-