Node(Guid, Node, int, int) constructor

Versione italiana
Create a new Node instance with a given identifier.

Node(Guid nodeGuid, Node parent, int movementCost, int heuristic);


Name Type Description
nodeGuid Guid Node unique identifier
parent Node Parent node
movementCost Integer Movement cost to this node from parent node
heuristic Integer Heuristic distance from destination node


The unique identifier represent the node logically, so when the algoritm verify if two nodes are equals it do an identifiers comparison. This system let the node matrix to be defined without need of empty Node object instances, making the computing requiring less time and memory.

Last edited Jul 28, 2010 at 1:41 PM by Arconte, version 2


No comments yet.