You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Instead of providing a function to get a mapNodes neighbors in the map class, the (3x3) neighbors could be stored as pointers in the mapNode itself to avoid having to call the function every time neighbors need to be accessed.
It's probably not worth the effort performance wise, but it'd be cleaner this way and the responsiblity of tracking it's neighbors would go to the mapNode class.
The text was updated successfully, but these errors were encountered:
Instead of providing a function to get a mapNodes neighbors in the map class, the (3x3) neighbors could be stored as pointers in the mapNode itself to avoid having to call the function every time neighbors need to be accessed.
It's probably not worth the effort performance wise, but it'd be cleaner this way and the responsiblity of tracking it's neighbors would go to the mapNode class.
The text was updated successfully, but these errors were encountered: