C# Класс GameEngine.Pathfinding.ANode

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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

Описание методов

ANode() публичный метод

public ANode ( Vector2 txPos, ANode parent = null ) : System
txPos Vector2
parent ANode
Результат System

IsDiagonalNeighbor() публичный метод

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
Результат bool

SetParent() публичный метод

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
Результат void

ToString() публичный метод

public ToString ( ) : string
Результат string