Skip to content

Commit

Permalink
refactor: Changed it to match convention.
Browse files Browse the repository at this point in the history
  • Loading branch information
JSLLW committed Sep 19, 2023
1 parent d147a26 commit c362bcc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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(
Expand Down

0 comments on commit c362bcc

Please sign in to comment.