5 Struct ASTAR_CELL
gullradriel edited this page 2026-10-09 00:55:18 +02:00

ASTAR_CELL

Module: ASTAR: A* pathfinding for 2D/3D grids

Internal node data used during pathfinding.

#include "n_astar.h"

Public Attributes

Name
uint8_t status
ASTAR_NODE_NONE / OPEN / CLOSED.
int parent_z
parent cell Z
int parent_y
parent cell Y
int parent_x
parent cell X (-1 if none)
int h
heuristic estimate to goal
int g
cost from start to this cell
int f
g + h

Public Attributes Documentation

variable status

uint8_t status;

ASTAR_NODE_NONE / OPEN / CLOSED.

variable parent_z

int parent_z;

parent cell Z

variable parent_y

int parent_y;

parent cell Y

variable parent_x

int parent_x;

parent cell X (-1 if none)

variable h

int h;

heuristic estimate to goal

variable g

int g;

cost from start to this cell

variable f

int f;

g + h