Cleanup
This commit is contained in:
@@ -220,7 +220,7 @@ public class BlockIndexer{
|
||||
|
||||
public void notifyTileDamaged(Building entity){
|
||||
if(damagedTiles[entity.team.id] == null){
|
||||
damagedTiles[entity.team.id] = new ObjectSet<Building>();
|
||||
damagedTiles[entity.team.id] = new ObjectSet<>();
|
||||
}
|
||||
|
||||
damagedTiles[entity.team.id].add(entity);
|
||||
|
||||
@@ -468,7 +468,7 @@ public class Pathfinder implements Runnable{
|
||||
/** search frontier, these are Pos objects */
|
||||
IntQueue frontier = new IntQueue();
|
||||
/** all target positions; these positions have a cost of 0, and must be synchronized on! */
|
||||
IntSeq targets = new IntSeq();
|
||||
final IntSeq targets = new IntSeq();
|
||||
/** current search ID */
|
||||
int search = 1;
|
||||
/** last updated time */
|
||||
|
||||
@@ -1,26 +0,0 @@
|
||||
package mindustry.ai.formations.patterns;
|
||||
|
||||
import arc.math.geom.*;
|
||||
import mindustry.ai.formations.*;
|
||||
|
||||
public class ArrowFormation extends FormationPattern{
|
||||
//total triangular numbers
|
||||
private static final int totalTris = 30;
|
||||
//triangular number table
|
||||
private static final int[] triTable = new int[totalTris];
|
||||
|
||||
//calculat triangular numbers
|
||||
static{
|
||||
int sum = 0;
|
||||
for(int i = 0; i < totalTris; i++){
|
||||
triTable[i] = sum;
|
||||
sum += (i + 1);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public Vec3 calculateSlotLocation(Vec3 out, int slot){
|
||||
//TODO
|
||||
return out;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user