I have the following class: public abstract class Map { protected PriorityQueue openNodes; } My implementation currently work like this: public Map() { PriorityQueue<Node&…
Tag: structure
What is a good way to implement calculations for extended classes?
I have the following classes: I would like to create a method like Where I only pass in the nodes, and the logic in either the method, or the nodes, or the map recognizes what kind of map I’m using. My current solution looks like this: When I look at this code, I think there has to be a better