From 16f75be3fd37b7a561a3d5c64e43add6d9678e3d Mon Sep 17 00:00:00 2001 From: gregchan550 Date: Thu, 21 Sep 2023 17:25:05 +1000 Subject: [PATCH] finished adding java docs to all functions, forgot to mention it in last commit --- .../game/components/tasks/bosstask/DemonBossTask.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/source/core/src/main/com/csse3200/game/components/tasks/bosstask/DemonBossTask.java b/source/core/src/main/com/csse3200/game/components/tasks/bosstask/DemonBossTask.java index b666efa3b..78698f3d7 100644 --- a/source/core/src/main/com/csse3200/game/components/tasks/bosstask/DemonBossTask.java +++ b/source/core/src/main/com/csse3200/game/components/tasks/bosstask/DemonBossTask.java @@ -331,6 +331,11 @@ private void applyAoeDamage(Array targets, int damage) { } } + /** + * Returns the closest human entity + * @param targets array of human entities within radius of 3 + * @return closest human entity + */ private Entity getClosestHuman(Array targets) { Entity closestEntity = null; float closestDistance = SMASH_RADIUS;