Unit cargo transport system

This commit is contained in:
Anuken
2021-11-29 20:06:49 -05:00
parent 635027bb81
commit 6483d924af
32 changed files with 631 additions and 115 deletions
+2 -2
View File
@@ -394,7 +394,7 @@ public class Pathfinder implements Runnable{
public static class EnemyCoreField extends Flowfield{
@Override
protected void getPositions(IntSeq out){
for(Tile other : indexer.getEnemy(team, BlockFlag.core)){
for(Building other : indexer.getEnemy(team, BlockFlag.core)){
out.add(other.pos());
}
@@ -410,7 +410,7 @@ public class Pathfinder implements Runnable{
public static class RallyField extends Flowfield{
@Override
protected void getPositions(IntSeq out){
for(Tile other : indexer.getAllied(team, BlockFlag.rally)){
for(Building other : indexer.getFlagged(team, BlockFlag.rally)){
out.add(other.pos());
}
}