diff --git a/source/core/src/main/com/csse3200/game/components/TouchAttackComponent.java b/source/core/src/main/com/csse3200/game/components/TouchAttackComponent.java index 1ad0e318a..46ef5ebc9 100644 --- a/source/core/src/main/com/csse3200/game/components/TouchAttackComponent.java +++ b/source/core/src/main/com/csse3200/game/components/TouchAttackComponent.java @@ -8,7 +8,6 @@ import com.csse3200.game.entities.Weapon; import com.csse3200.game.physics.BodyUserData; import com.csse3200.game.physics.PhysicsLayer; -import com.csse3200.game.physics.components.ColliderComponent; import com.csse3200.game.physics.components.HitboxComponent; import com.csse3200.game.physics.components.PhysicsComponent; diff --git a/source/core/src/main/com/csse3200/game/components/npc/DeflectingComponent.java b/source/core/src/main/com/csse3200/game/components/npc/DeflectingComponent.java index f0d268e20..8ebd3c50a 100644 --- a/source/core/src/main/com/csse3200/game/components/npc/DeflectingComponent.java +++ b/source/core/src/main/com/csse3200/game/components/npc/DeflectingComponent.java @@ -64,6 +64,11 @@ public void update() { resetHealth(); } + /** + * Deflects projectile to the opposite direction + * @param me Self entity fixture + * @param other Colliding projectile fixture. + */ private void deflectProj(Fixture me, Fixture other) { // If self fixture does not match or the colliding target if (hitboxComponent.getFixture() != me