Skip to content

Commit

Permalink
Fix dodging component test case
Browse files Browse the repository at this point in the history
  • Loading branch information
freshc0w committed Oct 10, 2023
1 parent 43539c5 commit 2d1d86a
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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() {
Expand All @@ -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
Expand Down

0 comments on commit 2d1d86a

Please sign in to comment.