Class Periphery
java.lang.Object
nz.ac.vuw.ecs.swen225.gp6.domain.TileAnatomy.AbstractTile
nz.ac.vuw.ecs.swen225.gp6.domain.Tiles.Periphery
- All Implemented Interfaces:
Tile
This class is only made to aid the renderer with drawing out of bound tiles, no hero, enemy or
any other tile should be able to move on this tile.
-
Field Summary
Fields inherited from class nz.ac.vuw.ecs.swen225.gp6.domain.TileAnatomy.AbstractTile
info -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionwhen an actor is moved onto this tile, then is to move off of it, replace it with the tile that this method returns.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, obstructsEnemy, obstructsHero, ping, setOn
-
Constructor Details
-
Periphery
Create the periphery 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.
-
replaceWith
Description copied from interface:Tilewhen an actor is moved onto this tile, then is to move off of it, replace it with the tile that this method returns.- Returns:
- tile that is to replace this tile after an actor going over it. If not implemented, defaults to Floor.
-