Skip to content

Commit

Permalink
Refactor: Changed bossDeathTask to BossDeathTask.
Browse files Browse the repository at this point in the history
  • Loading branch information
JSLLW committed Sep 19, 2023
1 parent fbaf223 commit ad3da8f
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 bossDeathTask extends DefaultTask implements PriorityTask {
public class BossDeathTask 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 bossDeathTask extends DefaultTask implements PriorityTask {
/**
* @param priority Task priority when shooting (0 when not chasing).
*/
public bossDeathTask(int priority) {
public BossDeathTask(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.bossDeathTask;
import com.csse3200.game.components.tasks.bosstask.BossDeathTask;
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 bossDeathTask(1));;
.addTask(new BossDeathTask(1));;

// Animation section
AnimationRenderComponent animator1 = new AnimationRenderComponent(
Expand Down

0 comments on commit ad3da8f

Please sign in to comment.