Skip to content

Commit

Permalink
Cleaned up code smells in SpawnWaveTask.java and WaveClass.Java
Browse files Browse the repository at this point in the history
  • Loading branch information
max9753 committed Oct 16, 2023
1 parent caa458a commit a97f0bb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import org.slf4j.LoggerFactory;

public class SpawnWaveTask extends DefaultTask implements PriorityTask {
private static final Logger logger = LoggerFactory.getLogger(SpawnWaveTask.class);

private final GameTime globalTime;
private long endTime = 0;
private final int SPAWNING_INTERVAL = 10;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,18 +1,14 @@
package com.csse3200.game.components.tasks.waves;

import com.badlogic.gdx.math.GridPoint2;
import com.csse3200.game.entities.Entity;

import com.csse3200.game.services.GameTime;
import com.csse3200.game.services.ServiceLocator;


import java.util.*;

public class WaveClass {
private HashMap<String, int[]> entities;
private GameTime gameTime;
private long startTime;
private List<Tuple> wave;
private Random rand = new Random();
private int mobIndex;

/**
Expand Down

0 comments on commit a97f0bb

Please sign in to comment.