DEV Community

Discussion on: A Star (A*) Path Finding C++

Collapse
 
stringsofarrays profile image
StringsOfArrays

Hey, what is "world.obstacles.count(id)"?? Where does world and obstacle get defined and what type is it?

Collapse
 
jansonsa profile image
Andris Jansons

Hi, "obstacles" is an std::set object. I'm using .count() to check if the corresponding tile is an obstacle or not. "world" is just a class where I keep it

Collapse
 
muhammadkhan786 profile image
MuhammadKhan786

how we can use this world, can you please out?