Quote:
Originally Posted by Dach
If there was either an attribute that we could write to for the tile object, or if tiles could join a class, making a pathfinder would be made immensely more efficient since you wouldn't need a list to contain all the closed nodes (single tile or otherwise). I'm sure there would be other possibilities to this, but I'm only interested in pathfinding.
|
Once you find a tile, add it to a list, and make sure it's not in the list? Though, yea, the only reason this would be really useful would be for level-editing purposes (they could store a tiletype as well, for broader pathfinding?)