using UnityEngine;
using System.Collections;
using System.Collections.Generic;

public enum Direction{
	Start,
	Right,
	Front,
	Left,
	Back,
};
//<summary>
//Class for representing concrete maze cell.
//</summary>
public class MazeCell {
	public bool IsVisited = false;
	public bool WallRight = false;
	public bool WallFront = false;
	public bool WallLeft = false;
	public bool WallBack = false;
	public Loot.Type loot = Loot.Type.None;

    private Vector2 loc;
    public int x { get { return (int)loc.x; } }
    public int y { get { return (int)loc.y; } }
    public Vector3 position;

    public List<MazeCell> neighbours = new List<MazeCell>();
    public int timesVisited = 0;
    
    public MazeCell(int x, int y)
    {
        loc = new Vector2(x, y);
        var sp = MazeSpawner.instance;
        position = new Vector3(x * sp.CellSize, 0, y * sp.CellSize);
    }
}
