Class Waypoint
Inherited Members
Namespace: Genesis.Core.GameElements
Assembly: Genesis.dll
Syntax
public class Waypoint
Constructors
Waypoint()
Declaration
public Waypoint()
Fields
column
The column position of the waypoint.
Declaration
public int column
Field Value
Type | Description |
---|---|
int |
fCost
The total cost of the waypoint (fCost = gCost + hCost).
Declaration
public int fCost
Field Value
Type | Description |
---|---|
int |
gCost
The actual cost from the starting point to this waypoint.
Declaration
public int gCost
Field Value
Type | Description |
---|---|
int |
hCost
The heuristic cost from this waypoint to the goal.
Declaration
public int hCost
Field Value
Type | Description |
---|---|
int |
parent
The parent waypoint in the navigation path.
Declaration
public Waypoint parent
Field Value
Type | Description |
---|---|
Waypoint |
row
The row position of the waypoint.
Declaration
public int row
Field Value
Type | Description |
---|---|
int |
Methods
CopyValues(Waypoint)
Copies the values of another waypoint.
Declaration
public void CopyValues(Waypoint waypoint)
Parameters
Type | Name | Description |
---|---|---|
Waypoint | waypoint | The waypoint to copy values from. |