Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
Loading...
Searching...
No Matches
GridCell Struct Reference

Node info containing 2D coordinates. More...

Public Member Functions

 GridCell ()=default
 
 GridCell (int _x, int _y, bool _blocked=false)
 

Public Attributes

int x = 0
 
int y = 0
 
bool blocked = false
 

Detailed Description

Node info containing 2D coordinates.

Each node in our grid graph stores its (x, y) position.

Definition at line 127 of file astar_example.cc.

Constructor & Destructor Documentation

◆ GridCell() [1/2]

GridCell::GridCell ( )
default

◆ GridCell() [2/2]

GridCell::GridCell ( int  _x,
int  _y,
bool  _blocked = false 
)
inline

Definition at line 134 of file astar_example.cc.

Member Data Documentation

◆ blocked

bool GridCell::blocked = false

Definition at line 131 of file astar_example.cc.

◆ x

int GridCell::x = 0

Definition at line 129 of file astar_example.cc.

◆ y

int GridCell::y = 0

Definition at line 130 of file astar_example.cc.


The documentation for this struct was generated from the following file: