Esempio n. 1
0
    /// <summary>
    /// Does this tile define the border of a room?
    /// </summary>
    /// <returns><c>true</c>, if the tile should not be part of a room, <c>false</c> otherwise.</returns>
    public bool DefinesRoomBorder()
    {
        if (TileType == TileType.Empty)
        {
            this.Room = null;
            return(true);
        }

        if (Addition != null)
        {
            if (Addition.DefinesRoomBorder())
            {
                this.Room = null;
                return(true);
            }
        }

        return(false);
    }