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