so ive been working on the A* algorithm for a while. and im doing pretty well so far considering this is my first real programming project.
there is however, one thing that is standing in my way from completing this.
ive got things set up so that all game objects with the material “nodes” are put into a node list. but what i want to do is create a node class and get some sort of expression/iterator to go through and create an object in that class for every element in my nodes list, with the game object name being the name of the software object. i also want to be able to get each of those objects to get a series of attributes assigned to them. ive got functions that will calculate everything i need so thats not the problem.
ive got some ideas floating around in my head dealing with the next() function but thats about it. i really dont want to have to be messing around with like 6 different lists at once.