From 2d1d86a64f6ad4cb7afd116143b59e870a91469b Mon Sep 17 00:00:00 2001 From: freshc0w <121275444+freshc0w@users.noreply.github.com> Date: Wed, 11 Oct 2023 01:01:40 +1000 Subject: [PATCH] Fix dodging component test case --- .../com/csse3200/game/components/DodgingComponentTest.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/source/core/src/test/com/csse3200/game/components/DodgingComponentTest.java b/source/core/src/test/com/csse3200/game/components/DodgingComponentTest.java index 95e0b60fd..603b66e33 100644 --- a/source/core/src/test/com/csse3200/game/components/DodgingComponentTest.java +++ b/source/core/src/test/com/csse3200/game/components/DodgingComponentTest.java @@ -14,6 +14,8 @@ import com.csse3200.game.components.npc.DodgingComponent; import com.csse3200.game.components.tasks.MobDodgeTask; import com.csse3200.game.components.tasks.MobWanderTask; +import com.csse3200.game.components.tasks.MobTask.MobTask; +import com.csse3200.game.components.tasks.MobTask.MobType; import com.csse3200.game.entities.Entity; import com.csse3200.game.entities.EntityService; import com.csse3200.game.entities.factories.NPCFactory; @@ -35,7 +37,7 @@ public class DodgingComponentTest { private static final float VALID_POSITION_Y = 4; private static final float VALID_POSITION_X = 7; private static final float DEFAULT_RANGE_DETECTION = 1f; - MobWanderTask task; + MobTask task; @BeforeEach public void setUp() { @@ -57,7 +59,8 @@ public void setUp() { VALID_POSITION_Y, DEFAULT_RANGE_DETECTION, 1.75f); - task = new MobDodgeTask(new Vector2(2f, 2f), 2f, 5); + // task = new MobDodgeTask(new Vector2(2f, 2f), 2f, 5); + task = new MobDodgeTask(MobType.DRAGON_KNIGHT, 5); } @Test