C# 클래스 GameEngine.Pathfinding.ANode

파일 보기 프로젝트 열기: MichaelAquilina/Some-2D-RPG 1 사용 예제들

공개 메소드들

메소드 설명
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