This commit is contained in:
Anuken
2020-12-12 13:26:30 -05:00
parent 8fa6b76bf9
commit 768d14088a
4 changed files with 21 additions and 3 deletions

View File

@@ -3,6 +3,7 @@ package mindustry.entities.units;
import arc.func.*;
import arc.math.geom.*;
import arc.util.*;
import mindustry.game.*;
import mindustry.gen.*;
import mindustry.world.*;
@@ -61,6 +62,12 @@ public class BuildPlan implements Position{
}
public boolean isRotation(Team team){
if(breaking) return false;
Tile tile = tile();
return tile != null && tile.team() == team && tile.block() == block && tile.build != null && tile.build.rotation != rotation;
}
public boolean samePos(BuildPlan other){
return x == other.x && y == other.y;
}