Skip to content
This repository has been archived by the owner on Mar 27, 2022. It is now read-only.

Commit

Permalink
Update PathFinder
Browse files Browse the repository at this point in the history
  • Loading branch information
Sander0542 committed Oct 28, 2021
1 parent 93d7759 commit bf971b1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ namespace Avans.FlatGalaxy.Simulation.PathFinding
{
public class BreadthFirstPathFinder : PathFinder
{
public override List<Planet> Find(Planet start, Planet end)
protected override List<Planet> Find(Planet start, Planet end)
{
var previous = new Dictionary<Planet, Planet>();
var queue = new Queue<Planet>();
Expand Down
2 changes: 1 addition & 1 deletion src/Avans.FlatGalaxy.Simulation/PathFinding/PathFinder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ namespace Avans.FlatGalaxy.Simulation.PathFinding
{
public abstract class PathFinder
{
public abstract List<Planet> Find(Planet start, Planet end);
protected abstract List<Planet> Find(Planet start, Planet end);

public List<Planet> Get(ISimulator simulator)
{
Expand Down

0 comments on commit bf971b1

Please sign in to comment.