Skip to content

Commit

Permalink
refactor: Unable to capitalise b in file name.
Browse files Browse the repository at this point in the history
  • Loading branch information
JSLLW committed Sep 19, 2023
1 parent b5d0d50 commit d147a26
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 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 BossMobDeathTask 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 BossMobDeathTask(int priority) {
this.priority = priority;

physics = ServiceLocator.getPhysicsService().getPhysics();
Expand Down Expand Up @@ -117,5 +117,4 @@ private void dropCurrency() {
ServiceLocator.getEntityService().register(scrap.setScale(2,2));

}

}
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.BossMobDeathTask;
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 BossMobDeathTask(1));;

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

0 comments on commit d147a26

Please sign in to comment.