Node

Namespace: Murder.Core.Ai
Assembly: Murder.dll

class Node

⭐ Constructors

public Node(Point p, Point c, int weight)

Parameters
p Point
c Point
weight int

⭐ Properties

Cluster

public readonly Point Cluster;

Returns
Point

Neighbours

public readonly Dictionary<TKey, TValue> Neighbours;

Returns
Dictionary<TKey, TValue>

P

public readonly Point P;

Returns
Point

Weight

public readonly int Weight;

Returns
int

X

public int X { get; }

Returns
int

Y

public int Y { get; }

Returns
int

⭐ Methods

HasNeighbour(Point)

public bool HasNeighbour(Point p)

Parameters
p Point

Returns
bool

PathTo(Point)

public ImmutableDictionary<TKey, TValue> PathTo(Point p)

Parameters
p Point

Returns
ImmutableDictionary<TKey, TValue>

AddEdge(Point, ImmutableDictionary<TKey, TValue>, double)

public void AddEdge(Point p, ImmutableDictionary<TKey, TValue> path, double cost)

Parameters
p Point
path ImmutableDictionary<TKey, TValue>
cost double

RemoveEdge(Point)

public void RemoveEdge(Point p)

Parameters
p Point