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

public class Periphery extends AbstractTile
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.
  • Constructor Details

    • Periphery

      public Periphery(TileInfo info)
      Create the periphery tile.
      Parameters:
      info - tile information
  • Method Details

    • type

      public TileType type()
      Description copied from interface: Tile
      Each 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

      public Tile replaceWith()
      Description copied from interface: Tile
      when 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.