Skip to content

Commit

Permalink
Removed unused imports to prevent code smells
Browse files Browse the repository at this point in the history
  • Loading branch information
Hasakev committed Oct 17, 2023
1 parent 3912125 commit 139cc34
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 11 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package com.csse3200.game.ai.tasks;

import com.csse3200.game.components.Component;
import com.csse3200.game.components.ComponentType;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,6 @@
import com.badlogic.gdx.math.Vector2;
import com.csse3200.game.entities.Entity;
import com.csse3200.game.entities.factories.*;
import com.badlogic.gdx.audio.Music;

import com.csse3200.game.components.ProjectileEffects;

import com.csse3200.game.utils.math.RandomUtils;
import com.csse3200.game.services.ResourceService;
import com.csse3200.game.services.ServiceLocator;
Expand All @@ -22,8 +18,6 @@ public class ForestGameArea extends GameArea {
private static final Logger logger = LoggerFactory.getLogger(ForestGameArea.class);

private Timer waveTimer;

private static final int NUM_WEAPON_TOWERS = 3;
private static final GridPoint2 PLAYER_SPAWN = new GridPoint2(2, 4);
// Temporary spawn point for testing
private static final float WALL_WIDTH = 0.1f;
Expand Down Expand Up @@ -213,8 +207,6 @@ public class ForestGameArea extends GameArea {
private static final String BACKGROUND_MUSIC = "sounds/background/Sci-Fi1.ogg";

private static final String[] forestMusic = {BACKGROUND_MUSIC};
private Entity player;
private Entity waves;

/**
* Initialise this ForestGameArea to use the provided TerrainFactory.
Expand Down Expand Up @@ -295,7 +287,7 @@ public void create() {
// player = spawnPlayer();

logger.info("Creating waves");
waves = WaveFactory.createWaves();
Entity waves = WaveFactory.createWaves();
spawnEntity(waves);
waves.getEvents().addListener("spawnWave", this::spawnMob);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import com.badlogic.gdx.math.Vector2;
import com.csse3200.game.ai.tasks.DefaultTask;
import com.csse3200.game.ai.tasks.PriorityTask;
import com.csse3200.game.areas.ForestGameArea;
import com.csse3200.game.components.CombatStatsComponent;
import com.csse3200.game.entities.Entity;
import com.csse3200.game.entities.factories.ProjectileFactory;
Expand Down

0 comments on commit 139cc34

Please sign in to comment.