Skip to content

Commit

Permalink
- fixed search function name
Browse files Browse the repository at this point in the history
  • Loading branch information
gnysek committed Aug 9, 2023
1 parent 12d96f1 commit 2709830
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions scripts/graph_search/graph_search.gml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
/*
// example #1
test_search = new graph_search(global.my_graph, "A", "C");
test_search = new sd_graph_search(global.my_graph, "A", "C");
test_search.pass(); // will serach everything, as _max_passes = infinity
// example #2
test_search = new graph_search(global.my_graph, "A", "C", 1);
test_search = new sd_graph_search(global.my_graph, "A", "C", 1);
// step event
var _s = test_search.pass();
Expand All @@ -20,7 +20,7 @@
/// @param {String} _start
/// @param {String} _end
/// @param {Real} _max_passes
function graph_search(_graph, _start, _end, _max_passes = infinity) constructor {
function sd_graph_search(_graph, _start, _end, _max_passes = infinity) constructor {
finished = false;
time_taken = 0;

Expand Down Expand Up @@ -174,4 +174,4 @@ function graph_search(_graph, _start, _end, _max_passes = infinity) constructor
distance,
};
}
}
}

0 comments on commit 2709830

Please sign in to comment.