|
Capycore Engine
0.1.0
A simple and lightweight game engine written in C++ based on the Unity API architecture.
|
Record structure used in A* pathfinding algorithm. More...
#include <graph.h>
Public Member Functions | |
| float | total_cost () const noexcept |
Public Attributes | |
| GraphPosition | pos |
| float | cost_from_start = FLT_MAX |
| float | heuristic = 0.f |
| GraphPosition | parent |
| bool | has_parent = false |
Record structure used in A* pathfinding algorithm.
| pos | The graph position of the node. |
| g | The cost from the start node to this node. |
| h | The heuristic cost estimate from this node to the target node. |
| parent | The graph position of the parent node in the path. |
| has_parent | Flag indicating whether this node has a parent. |
|
inlinenoexcept |
| float NodeRecord::cost_from_start = FLT_MAX |
| bool NodeRecord::has_parent = false |
| float NodeRecord::heuristic = 0.f |
| GraphPosition NodeRecord::parent |
| GraphPosition NodeRecord::pos |