mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-01-25 22:58:47 +07:00
Removed SolidTrait#movable
This commit is contained in:
parent
eecaa850e0
commit
6a406f4d45
@ -25,10 +25,6 @@ public interface SolidTrait extends QuadTreeObject, MoveTrait, VelocityTrait, En
|
||||
return getY() - lastPosition().y;
|
||||
}
|
||||
|
||||
default boolean movable(){
|
||||
return false;
|
||||
}
|
||||
|
||||
default boolean collides(SolidTrait other){
|
||||
return true;
|
||||
}
|
||||
|
@ -55,11 +55,6 @@ public abstract class Unit extends DestructibleEntity implements SaveTrait, Targ
|
||||
protected Team team = Team.blue;
|
||||
protected float drownTime, hitTime;
|
||||
|
||||
@Override
|
||||
public boolean movable(){
|
||||
return !isDead();
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean collidesGrid(int x, int y){
|
||||
return !isFlying();
|
||||
|
Loading…
Reference in New Issue
Block a user