Dumped plans into TODO.md, minor edits to README
This commit is contained in:
@@ -15,7 +15,7 @@ import io.anuke.ucore.util.Mathf;
|
||||
import io.anuke.ucore.util.Tmp;
|
||||
|
||||
public class Pathfind{
|
||||
private static final long ms = 1000000;
|
||||
private static final long ms = 1000000 * 3;
|
||||
|
||||
MHueristic heuristic = new MHueristic();
|
||||
PassTileGraph graph = new PassTileGraph();
|
||||
@@ -100,7 +100,7 @@ public class Pathfind{
|
||||
public void update(){
|
||||
for(SpawnPoint point : Vars.control.getSpawnPoints()){
|
||||
if(!point.request.pathFound){
|
||||
if(point.finder.search(point.request, ms * 2)){
|
||||
if(point.finder.search(point.request, ms)){
|
||||
smoother.smoothPath(point.path);
|
||||
point.pathTiles = point.path.nodes.toArray(Tile.class);
|
||||
point.tempTiles = point.path.nodes.toArray(Tile.class);
|
||||
|
||||
@@ -5,9 +5,7 @@ import static io.anuke.mindustry.Vars.tilesize;
|
||||
import java.io.DataInputStream;
|
||||
import java.io.DataOutputStream;
|
||||
import java.io.IOException;
|
||||
import java.util.AbstractList;
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
import java.util.*;
|
||||
|
||||
import com.badlogic.gdx.utils.Array;
|
||||
import com.badlogic.gdx.utils.IntArray;
|
||||
@@ -201,7 +199,7 @@ public class Conveyor extends Block{
|
||||
}
|
||||
};
|
||||
|
||||
Collections.sort(wrapper, Conveyor::compareItems);
|
||||
Collections.sort(wrapper, new Comparator(){public int compare(Object a, Object b){ return compareItems((Integer)a, (Integer)b); }});
|
||||
}
|
||||
|
||||
private static int compareItems(int a, int b){
|
||||
|
||||
Reference in New Issue
Block a user