From c362bcc7028d20ab6859eb526c902da9a83077c5 Mon Sep 17 00:00:00 2001 From: JSLLW Date: Wed, 20 Sep 2023 01:36:25 +1000 Subject: [PATCH] refactor: Changed it to match convention. --- .../bosstask/{BossMobDeathTask.java => MobBossDeathTask.java} | 4 ++-- .../com/csse3200/game/entities/factories/MobBossFactory.java | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) rename source/core/src/main/com/csse3200/game/components/tasks/bosstask/{BossMobDeathTask.java => MobBossDeathTask.java} (96%) diff --git a/source/core/src/main/com/csse3200/game/components/tasks/bosstask/BossMobDeathTask.java b/source/core/src/main/com/csse3200/game/components/tasks/bosstask/MobBossDeathTask.java similarity index 96% rename from source/core/src/main/com/csse3200/game/components/tasks/bosstask/BossMobDeathTask.java rename to source/core/src/main/com/csse3200/game/components/tasks/bosstask/MobBossDeathTask.java index e794f9ef7..3d02358f2 100644 --- a/source/core/src/main/com/csse3200/game/components/tasks/bosstask/BossMobDeathTask.java +++ b/source/core/src/main/com/csse3200/game/components/tasks/bosstask/MobBossDeathTask.java @@ -16,7 +16,7 @@ /** * Task that prints a message to the terminal whenever it is called. */ -public class BossMobDeathTask extends DefaultTask implements PriorityTask { +public class MobBossDeathTask 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 BossMobDeathTask extends DefaultTask implements PriorityTask { /** * @param priority Task priority when shooting (0 when not chasing). */ - public BossMobDeathTask(int priority) { + public MobBossDeathTask(int priority) { this.priority = priority; physics = ServiceLocator.getPhysicsService().getPhysics(); 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 365b48329..6d8f73795 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.BossMobDeathTask; +import com.csse3200.game.components.tasks.bosstask.MobBossDeathTask; 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 BossMobDeathTask(1));; + .addTask(new MobBossDeathTask(1));; // Animation section AnimationRenderComponent animator1 = new AnimationRenderComponent(