Node.cs 685 B

12345678910111213141516171819202122232425262728293031323334
  1. 
  2. namespace PathfindingPCL
  3. {
  4. public abstract class Node
  5. {
  6. private Node precursor = null;
  7. internal Node Precursor
  8. {
  9. get
  10. {
  11. return precursor;
  12. }
  13. set
  14. {
  15. precursor = value;
  16. }
  17. }
  18. private double distanceFromBegin = double.PositiveInfinity;
  19. internal double DistanceFromBegin
  20. {
  21. get
  22. {
  23. return distanceFromBegin;
  24. }
  25. set
  26. {
  27. distanceFromBegin = value;
  28. }
  29. }
  30. internal double EstimatedDistance { get; set; }
  31. }
  32. }