From d147a26f91789df40df933034aa0ad3fd4356883 Mon Sep 17 00:00:00 2001 From: JSLLW Date: Wed, 20 Sep 2023 01:33:08 +1000 Subject: [PATCH] refactor: Unable to capitalise b in file name. --- .../bosstask/{bossDeathTask.java => BossMobDeathTask.java} | 5 ++--- .../com/csse3200/game/entities/factories/MobBossFactory.java | 4 ++-- 2 files changed, 4 insertions(+), 5 deletions(-) rename source/core/src/main/com/csse3200/game/components/tasks/bosstask/{bossDeathTask.java => BossMobDeathTask.java} (96%) diff --git a/source/core/src/main/com/csse3200/game/components/tasks/bosstask/bossDeathTask.java b/source/core/src/main/com/csse3200/game/components/tasks/bosstask/BossMobDeathTask.java similarity index 96% rename from source/core/src/main/com/csse3200/game/components/tasks/bosstask/bossDeathTask.java rename to source/core/src/main/com/csse3200/game/components/tasks/bosstask/BossMobDeathTask.java index e483d2234..e794f9ef7 100644 --- a/source/core/src/main/com/csse3200/game/components/tasks/bosstask/bossDeathTask.java +++ b/source/core/src/main/com/csse3200/game/components/tasks/bosstask/BossMobDeathTask.java @@ -16,7 +16,7 @@ /** * Task that prints a message to the terminal whenever it is called. */ -public class BossDeathTask extends DefaultTask implements PriorityTask { +public class BossMobDeathTask extends DefaultTask implements PriorityTask { private static final int INTERVAL = 1; // time interval to scan for towers in private final int priority; @@ -31,7 +31,7 @@ public class BossDeathTask extends DefaultTask implements PriorityTask { /** * @param priority Task priority when shooting (0 when not chasing). */ - public BossDeathTask(int priority) { + public BossMobDeathTask(int priority) { this.priority = priority; physics = ServiceLocator.getPhysicsService().getPhysics(); @@ -117,5 +117,4 @@ private void dropCurrency() { ServiceLocator.getEntityService().register(scrap.setScale(2,2)); } - } diff --git a/source/core/src/main/com/csse3200/game/entities/factories/MobBossFactory.java b/source/core/src/main/com/csse3200/game/entities/factories/MobBossFactory.java index 48d49cef0..365b48329 100644 --- a/source/core/src/main/com/csse3200/game/entities/factories/MobBossFactory.java +++ b/source/core/src/main/com/csse3200/game/entities/factories/MobBossFactory.java @@ -10,7 +10,7 @@ import com.csse3200.game.components.tasks.bosstask.DemonBossTask; import com.csse3200.game.components.tasks.bosstask.FinalBossMovementTask; import com.csse3200.game.components.tasks.bosstask.RangeBossTask; -import com.csse3200.game.components.tasks.bosstask.BossDeathTask; +import com.csse3200.game.components.tasks.bosstask.BossMobDeathTask; import com.csse3200.game.entities.Entity; import com.csse3200.game.entities.configs.MobBossConfigs; import com.csse3200.game.entities.configs.NPCConfigs; @@ -77,7 +77,7 @@ public static Entity createMobBoss1(int numLane) { AITaskComponent aiTaskComponent1 = new AITaskComponent() .addTask(new FinalBossMovementTask(1f, numLane)) - .addTask(new BossDeathTask(1));; + .addTask(new BossMobDeathTask(1));; // Animation section AnimationRenderComponent animator1 = new AnimationRenderComponent(