private Seeker[] spawnSeekers() {
ArrayList<Point> spawns = getSpawns() ;
int [] indexs= new int[spawns.length()-4];
Seeker[] newSeekers = new Seeker[spawns.length()-4];
for (int i = 0; i < spawns.length()-4; i++)
{
newSeekers[i] = new Seeker(spawns[i].x, spawns[i].y);
}
for (int i = 0; i < spawns.length(); i++)
{
spawns.remove(0);
}
return newSeekers;
}
这是发生的两个问题