Class ExitDoor
java.lang.Object
nz.ac.vuw.ecs.swen225.gp6.domain.TileAnatomy.AbstractTile
nz.ac.vuw.ecs.swen225.gp6.domain.TileGroups.Door
nz.ac.vuw.ecs.swen225.gp6.domain.Tiles.ExitDoor
- All Implemented Interfaces:
Tile
A class representing a exit door that represents the exit door when all coins/treasures aren't
yet collected. No one can pass through it until all coins are collected.
-
Field Summary
Fields inherited from class nz.ac.vuw.ecs.swen225.gp6.domain.TileAnatomy.AbstractTile
info -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncolor()gets the colour of the key of the door (none if not a coloured door, e.g exit door)booleanChecks wether this tile is an obstruction for enemy tile ,in a given domain.booleanChecks wether this tile is an obstruction for hero tile ,in a given domain.type()Each tile object will hold a reference to one TileState enum, which determines the behaviour of a number of the tiles important methods.Methods 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, ping, replaceWith
-
Constructor Details
-
ExitDoor
Create an exit door tile.- 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:Doorgets the colour of the key of the door (none if not a coloured door, e.g exit door) -
obstructsHero
Description copied from interface:TileChecks wether this tile is an obstruction for hero tile ,in a given domain. NOTE: does not alter the domain or this tile in anyway.- Specified by:
obstructsHeroin interfaceTile- Overrides:
obstructsHeroin classDoor- Parameters:
d- game domain to check on- Returns:
- true if obstructs hero, if not implemented, defaults to false.
-
obstructsEnemy
Description copied from interface:TileChecks wether this tile is an obstruction for enemy tile ,in a given domain. NOTE: does not alter the domain or this tile in anyway.- Specified by:
obstructsEnemyin interfaceTile- Overrides:
obstructsEnemyin classDoor- Parameters:
d- game domain to check on- Returns:
- true if obstructs enemy, if not implemented, defaults to false.
-