An error occurred while loading the file. Please try again.
-
koz01 authored46b63b19
CollisionAble.java 270 B
package lab;
import javafx.geometry.Rectangle2D;
public interface CollisionAble {
default boolean overlaps(CollisionAble other) {
return getBoundingBox().intersects(other.getBoundingBox());
}
void hitBy(CollisionAble other);
Rectangle2D getBoundingBox();
}