TreeNode.cs 631 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. namespace BehaviorTree
  6. {
  7. public class TreeNode
  8. {
  9. private double x = 0.0;
  10. private double y = 0.0;
  11. private int type = 0;
  12. public TreeNode(double x, double y)
  13. {
  14. this.x = x;
  15. this.y = y;
  16. }
  17. public double X
  18. {
  19. get
  20. {
  21. return x;
  22. }
  23. set
  24. {
  25. x = value;
  26. }
  27. }
  28. public double Y
  29. {
  30. get
  31. {
  32. return y;
  33. }
  34. set
  35. {
  36. y = value;
  37. }
  38. }
  39. public int Type
  40. {
  41. get
  42. {
  43. return type;
  44. }
  45. set
  46. {
  47. type = value;
  48. }
  49. }
  50. }
  51. }