Class ColorableTile
java.lang.Object
nz.ac.vuw.ecs.swen225.gp22.domain.Tile
nz.ac.vuw.ecs.swen225.gp22.domain.ColorableTile
- Direct Known Subclasses:
 Key,LockedDoor
Template for Tile objects that need a color property.
- Author:
 - Abdul
 
- 
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumEnum with values that represent all valid colors. - 
Constructor Summary
ConstructorsConstructorDescriptionColorableTile(Maze.Point tilePos, boolean obstructive, ColorableTile.Color color) Default constructor, sets the position, obstructiveness, and color of the tile. - 
Method Summary
Methods inherited from class nz.ac.vuw.ecs.swen225.gp22.domain.Tile
deleteTile, getPos, isObstructive, setObstructive, setPos 
- 
Constructor Details
- 
ColorableTile
Default constructor, sets the position, obstructiveness, and color of the tile.- Parameters:
 tilePos- Point to set the position field to.obstructive- Boolean to set the obstructive field to.color- Color to set the color field to.
 
 - 
 - 
Method Details
- 
getColor
- Returns:
 - The color of the tile.
 
 
 -