From 04a36c02122f8c91defd4b62987e22026137e2c5 Mon Sep 17 00:00:00 2001 From: Harsh Kumar Date: Sun, 29 Nov 2020 22:38:54 +0530 Subject: [PATCH] Added Collidable Interface (Closes #6) Signed-off-by: Harsh Kumar --- src/interfaces/Collidable.java | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 src/interfaces/Collidable.java diff --git a/src/interfaces/Collidable.java b/src/interfaces/Collidable.java new file mode 100644 index 0000000..5329e83 --- /dev/null +++ b/src/interfaces/Collidable.java @@ -0,0 +1,8 @@ +package interfaces; + +import javafx.geometry.Bounds; + +public interface Collidable { + Bounds getBounds(); + int hasCollided(Collidable c); +}