Point_CTU.cs
1.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
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})";
}
}
}