All Implemented Interfaces:
Tile

public class Wall extends AbstractTile
A class representing a wall, which hero and enemy actors cannot move on.
  • Constructor Details

    • Wall

      public Wall(TileInfo info)
      Create a wall.
      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.
    • obstructsHero

      public boolean obstructsHero(Domain d)
      Description copied from interface: Tile
      Checks wether this tile is an obstruction for hero tile ,in a given domain. NOTE: does not alter the domain or this tile in anyway.
      Parameters:
      d - game domain to check on
      Returns:
      true if obstructs hero, if not implemented, defaults to false.
    • obstructsEnemy

      public boolean obstructsEnemy(Domain d)
      Description copied from interface: Tile
      Checks wether this tile is an obstruction for enemy tile ,in a given domain. NOTE: does not alter the domain or this tile in anyway.
      Parameters:
      d - game domain to check on
      Returns:
      true if obstructs enemy, if not implemented, defaults to false.