Open SosoLaMojo opened 3 years ago
Thanks for the enhaucement proposal.
Some remarks:
Please do response with a more complete proposal such that I can continue to help you be sure how you implement your proposal.
Useful reference:
Our task is to implement the A* algorithm on a weighter graph for the 5204 module.
Add nodes to map
Calculate and return the nodes of the path found by A*.
Thanks for the update.
Be sure to implement at least Dijkstra algorithm (A but without arrival heuristics) by Thursday (A would be great, but I want first to be sure you set up your data structures correctly).
Introduction
Our task is to implement the A* algorithm on a weighter graph for the 5204 module.
Weighter Graph
class Node
Methode NodeGeneration
Creation of dead or alive nodes at different positions (Vector2f).
Methode SetNeigtbors
Give its neighbors to each node (scenario: 4 neighbors per node)
Methode SpawnEntities
Set a point of start(A) and end(B) (Vector2f)
A*
Methode FindPath
Calculate and store the nodes of the path found by A*.
Questions
What is the best way to store neighbors? Pointer or Array?