C# Class GameEngine.Pathfinding.ANode

Afficher le fichier Open project: MichaelAquilina/Some-2D-RPG Class Usage Examples

Méthodes publiques

Méthode Description
ANode ( Vector2 txPos, ANode parent = null ) : System
IsDiagonalNeighbor ( ANode node ) : bool

Returns a boolean value specifying if the current node is a diagonal neighbour to the node specified in the parameter.

SetParent ( ANode parent ) : void

Sets the specified node as the current nodes Parent. The method will automatically recalculate the total Length of the current node as well as update the childe reference for the parent being set.

ToString ( ) : string

Method Details

ANode() public méthode

public ANode ( Vector2 txPos, ANode parent = null ) : System
txPos Vector2
parent ANode
Résultat System

IsDiagonalNeighbor() public méthode

Returns a boolean value specifying if the current node is a diagonal neighbour to the node specified in the parameter.
public IsDiagonalNeighbor ( ANode node ) : bool
node ANode
Résultat bool

SetParent() public méthode

Sets the specified node as the current nodes Parent. The method will automatically recalculate the total Length of the current node as well as update the childe reference for the parent being set.
public SetParent ( ANode parent ) : void
parent ANode
Résultat void

ToString() public méthode

public ToString ( ) : string
Résultat string