C# Класс Universe.BotManager.AStar.AStarNode

Base class for path finding nodes, it holds no actual information about the map. An inherited class must be constructed from this class and all virtual methods must be implemented. Note, that calling base() in the overridden methods is not needed.
Наследование: IComparable
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
AStarNode ( AStarNode aParent, AStarNode aGoalNode, double aCost ) : System

Constructor.

Calculate ( ) : void

Calculates the estimated cost for the remaining trip to the goal.

CompareTo ( object obj ) : int
Equals ( object obj ) : bool
GetHashCode ( ) : int
GetSuccessors ( ArrayList aSuccessors ) : void

Gets all successors nodes from the current node and adds them to the successor list

IsGoal ( ) : bool

Determines whether the current node is the goal.

IsSameState ( AStarNode aNode ) : bool

Determines whether the current node is the same state as the on passed.

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

AStarNode() публичный Метод

Constructor.
public AStarNode ( AStarNode aParent, AStarNode aGoalNode, double aCost ) : System
aParent AStarNode The node's parent
aGoalNode AStarNode The goal node
aCost double The accumulative cost until now
Результат System

Calculate() публичный Метод

Calculates the estimated cost for the remaining trip to the goal.
public Calculate ( ) : void
Результат void

CompareTo() публичный Метод

public CompareTo ( object obj ) : int
obj object
Результат int

Equals() публичный Метод

public Equals ( object obj ) : bool
obj object
Результат bool

GetHashCode() публичный Метод

public GetHashCode ( ) : int
Результат int

GetSuccessors() публичный Метод

Gets all successors nodes from the current node and adds them to the successor list
public GetSuccessors ( ArrayList aSuccessors ) : void
aSuccessors System.Collections.ArrayList List in which the successors will be added
Результат void

IsGoal() публичный Метод

Determines whether the current node is the goal.
public IsGoal ( ) : bool
Результат bool

IsSameState() публичный Метод

Determines whether the current node is the same state as the on passed.
public IsSameState ( AStarNode aNode ) : bool
aNode AStarNode AStarNode to compare the current node to
Результат bool