mirror of
https://github.com/Anuken/Mindustry.git
synced 2026-01-26 06:22:17 -08:00
Cleanup
This commit is contained in:
parent
2b96d30255
commit
d85f6c72eb
2 changed files with 4 additions and 8 deletions
|
|
@ -91,8 +91,7 @@ public class Team implements Comparable<Team>{
|
|||
return state.teams.get(this);
|
||||
}
|
||||
|
||||
public @Nullable
|
||||
CoreBuild core(){
|
||||
public @Nullable CoreBuild core(){
|
||||
return data().core();
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -21,8 +21,7 @@ public class Teams{
|
|||
active.add(get(Team.crux));
|
||||
}
|
||||
|
||||
public @Nullable
|
||||
CoreBuild closestEnemyCore(float x, float y, Team team){
|
||||
public @Nullable CoreBuild closestEnemyCore(float x, float y, Team team){
|
||||
for(Team enemy : team.enemies()){
|
||||
CoreBuild tile = Geometry.findClosest(x, y, enemy.cores());
|
||||
if(tile != null) return tile;
|
||||
|
|
@ -30,8 +29,7 @@ public class Teams{
|
|||
return null;
|
||||
}
|
||||
|
||||
public @Nullable
|
||||
CoreBuild closestCore(float x, float y, Team team){
|
||||
public @Nullable CoreBuild closestCore(float x, float y, Team team){
|
||||
return Geometry.findClosest(x, y, get(team).cores);
|
||||
}
|
||||
|
||||
|
|
@ -168,8 +166,7 @@ public class Teams{
|
|||
return cores.isEmpty();
|
||||
}
|
||||
|
||||
public @Nullable
|
||||
CoreBuild core(){
|
||||
public @Nullable CoreBuild core(){
|
||||
return cores.isEmpty() ? null : cores.first();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue