DFS instantiation in biome generator is now correct.
Performed refactoring Began work on world height shader (untested).
This commit is contained in:
@@ -139,9 +139,9 @@ public class DepthFirstSearchTest {
|
||||
@Test
|
||||
public void testDFSFindEndNodeMapDValid() {
|
||||
Validator validator = new Validator(mapD);
|
||||
dfs = new DepthFirstSearch(validator);
|
||||
dfs.setValidatable(validator);
|
||||
dfs.setStartPosition(0, 0);
|
||||
|
||||
assertTrue(dfs.findTarget(validator));
|
||||
assertEquals(0, dfs.getEndX());
|
||||
assertEquals(3, dfs.getEndY());
|
||||
@@ -150,6 +150,7 @@ public class DepthFirstSearchTest {
|
||||
@Test
|
||||
public void testDFSFindEndNodeMapEInvalid() {
|
||||
Validator validator = new Validator(mapE);
|
||||
dfs = new DepthFirstSearch();
|
||||
dfs.setValidatable(validator);
|
||||
dfs.setStartPosition(0, 0);
|
||||
|
||||
|
Reference in New Issue
Block a user