﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;

namespace Game_Algo
{
    class Tile
    {
        public int TypeId { get; set; }

        public Tile(int MapCellId)
        {
            this.TypeId = MapCellId;
        }

        public bool Walkable
        {
            get
            {
                return (TypeId == GameSetting.TileType.Floor || TypeId == GameSetting.TileType.Door
                    || TypeId == GameSetting.TileType.Purple || TypeId == GameSetting.TileType.Yellow
                    || TypeId == GameSetting.TileType.Brown  || TypeId == GameSetting.TileType.Exit);
            }
        }
    }
}
