Point_CTU.cs 1.4 KB
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace TheMachine
{
    public class Point_CTU
    {
        public uint Id { get; set; }
        public int X { get; set; }
        public int Y { get; set; }
        public uint UpID { get; set; }
        public uint DownID { get; set; }
        public uint LeftID { get; set; }
        public uint RightID { get; set; }
        public short UpDistance { get; set; }
        public short DownDistance { get; set; }
        public short RightDistance { get; set; }
        public short LeftDistance { get; set; }
        public Point_CTU Up { get; set; }
        public Point_CTU Down { get; set; }
        public Point_CTU Left { get; set; }
        public Point_CTU Right { get; set; }
        public bool Visited { get; set; }
        public Point_CTU(uint upID, uint downID, uint leftID, uint rightID, short upDistance, short downDistance, short leftDistance, short rightDistance, int x, int y, uint id)
        {
            UpID = upID;
            DownID = downID;
            LeftID = leftID;
            RightID = rightID;
            Id = id;

        }
        public Point_CTU(int x, int y, uint id)
        {
            X = x;
            Y = y;
            Visited = false;
            Id = id;
        }

        public override string ToString()
        {
            return $"({X}, {Y})";
        }
    }
}