Home Reference Source Repository
``import PillarTile from 'roguelike/app/tiles/PillarTile.js'``
public class

# PillarTile

#### Extends:

Tile → PillarTile

## Constructor Summary

 Public Constructor public constructor(x: *, y: *)

## Method Summary

 Public Methods public getName(): string public isOpaque(): boolean public isSolid(): boolean

## Inherited Summary

 From class Tile public addItem(item: Item) Adds an Item to the pile of Items on the Tile. public Gets the Creature on this Tile public getDirectDistance(other: Tile): number Gets the Chebyshev distance between this Tile and another. public getEuclideanDistance(other: Tile): number Gets the Euclidean distance between this Tile and another, using the Pythagorean Theorem. public getItems(): Array Gets the list of Items on this Tile public getName(): string Gets a human-friendly name for this Tile public getNeighbors4(dungeon: Dungeon): Array Gets the (up to) 4 neighbors in the cardinal directions from this Tile public getNeighbors8(dungeon: Dungeon): Array Gets all Tiles immediately adjacent to this Tile (including diagonally) public getRoomKey(): string Gets the room key for this Tile, if any public getX(): number Get's the x coordinate of this tile public getY(): number Get's the y coordinate of this tile public hasFloor(): boolean Tells whether this tile is considered a floor (not a pit). public isOpaque(): boolean Tells whether this tile is opaque (e.g. public isSolid(): boolean Tells whether this tile is solid (e.g. public Removes the Creature from this Tile, if any public removeItem(param: Item | number): * Removes an Item from the Tile public setCreature(creature: Creature) Sets the Creature occupying this Tile. public setRoomKey(key: string) Sets an identifier telling which room the Tile belongs to. public toString(): string Gets a debug representation of this Tile

## Public Constructors

### publicconstructor(x: *, y: *) source

Tile#constructor

#### Params:

 Name Type Attribute Description x * y *

Tile#getName

Tile#isOpaque

Tile#isSolid