C# Class OpenRA.Mods.Common.Pathfinder.CellInfo

Stores information about nodes in the pathfinding graph
Mostrar archivo Open project: pchote/OpenRA Class Usage Examples

Public Properties

Property Type Description
CostSoFar int
EstimatedTotal int
PreviousPos CPos
Status CellStatus

Public Methods

Method Description
CellInfo ( int costSoFar, int estimatedTotal, CPos previousPos, CellStatus status )

Method Details

CellInfo() public method

public CellInfo ( int costSoFar, int estimatedTotal, CPos previousPos, CellStatus status )
costSoFar int
estimatedTotal int
previousPos CPos
status CellStatus

Property Details

CostSoFar public_oe property

The cost to move from the start up to this node
public int CostSoFar
return int

EstimatedTotal public_oe property

The estimation of how far is the node from our goal
public int EstimatedTotal
return int

PreviousPos public_oe property

The previous node of this one that follows the shortest path
public CPos PreviousPos
return CPos

Status public_oe property

The status of this node
public CellStatus Status
return CellStatus