Skip to content

Commit

Permalink
fixed some qodana problems
Browse files Browse the repository at this point in the history
  • Loading branch information
TheRealEmissions committed May 23, 2024
1 parent 3cb33fb commit f35336e
Show file tree
Hide file tree
Showing 8 changed files with 13 additions and 21 deletions.
10 changes: 5 additions & 5 deletions game/core/src/com/eng1/game/assets/images/ImageAssetPaths.java
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package com.eng1.game.assets.images;

public final class ImageAssetPaths {
protected static final String MAIN_MENU_TITLE_PATH = "images/main_menu_title.png";
protected static final String NEW_WORLD_MAP_OVERVIEW_PATH = "maps/newWorldMap/newWorldMap.png";
protected static final String PLAYER_CHARACTER_1_PATH = "playerCharacters/playerCharacter1.png";
protected static final String PLAYER_CHARACTER_2_PATH = "playerCharacters/playerCharacter2.png";
protected static final String PLAYER_CHARACTER_3_PATH = "playerCharacters/playerCharacter3.png";
static final String MAIN_MENU_TITLE_PATH = "images/main_menu_title.png";
static final String NEW_WORLD_MAP_OVERVIEW_PATH = "maps/newWorldMap/newWorldMap.png";
static final String PLAYER_CHARACTER_1_PATH = "playerCharacters/playerCharacter1.png";
static final String PLAYER_CHARACTER_2_PATH = "playerCharacters/playerCharacter2.png";
static final String PLAYER_CHARACTER_3_PATH = "playerCharacters/playerCharacter3.png";
}
13 changes: 8 additions & 5 deletions game/core/src/com/eng1/game/assets/maps/MapAssetPaths.java
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
package com.eng1.game.assets.maps;

import lombok.experimental.UtilityClass;

@UtilityClass
public final class MapAssetPaths {
protected static final String HOME_MAP_PATH = "maps/map8 (home)/home.tmx";
protected static final String GYM_MAP_PATH = "maps/map9 (gym)/gym.tmx";
protected static final String CS_BUILDING_MAP_PATH = "maps/map10 (cs-building)/computer-science-building.tmx";
protected static final String PIAZZA_MAP_PATH = "maps/map11 (piazza)/piazza.tmx";
protected static final String NEW_WORLD_MAP_PATH = "maps/newWorldMap/newWorldMap.tmx";
static final String HOME_MAP_PATH = "maps/map8 (home)/home.tmx";
static final String GYM_MAP_PATH = "maps/map9 (gym)/gym.tmx";
static final String CS_BUILDING_MAP_PATH = "maps/map10 (cs-building)/computer-science-building.tmx";
static final String PIAZZA_MAP_PATH = "maps/map11 (piazza)/piazza.tmx";
static final String NEW_WORLD_MAP_PATH = "maps/newWorldMap/newWorldMap.tmx";
}
1 change: 0 additions & 1 deletion game/core/src/com/eng1/game/assets/maps/MapAssets.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package com.eng1.game.assets.maps;

import com.badlogic.gdx.maps.tiled.TiledMap;
import com.badlogic.gdx.maps.tiled.TmxMapLoader;
import com.eng1.game.assets.Assets;
import lombok.Getter;
import org.jetbrains.annotations.NotNull;
Expand Down
3 changes: 0 additions & 3 deletions game/core/src/com/eng1/game/game/player/Statistics.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package com.eng1.game.game.player;

import com.badlogic.gdx.scenes.scene2d.ui.ProgressBar;
import com.eng1.game.game.activity.Activities;
import lombok.Getter;
import lombok.experimental.UtilityClass;
import org.jetbrains.annotations.NotNull;
Expand Down Expand Up @@ -278,7 +277,6 @@ public enum Effect {
* The score starts at 0 and increases over time as the player progresses in the game.
* It represents the total points that the player has gained throughout the game.
*
* @return The current score of the player.
* @deprecated in favour of {@link com.eng1.game.game.Score}
*/
@Getter
Expand Down Expand Up @@ -306,7 +304,6 @@ public enum Effect {
* However, time is displayed 1 hour ahead to the player due to rolling over behaviour of {@link LocalTime}
* The time increases as the player performs activities in the game.
*
* @return The current time in the game.
*/
@Getter
private static LocalTime time = LocalTime.of(7, 0);
Expand Down
3 changes: 0 additions & 3 deletions game/core/src/com/eng1/game/screens/CharacterScreen.java
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,6 @@ private class TableContents {
*/
public static final Image CHARACTER3_IMAGE = new Image(ImageAssets.PLAYER_CHARACTER_3.get());

/**
* Static initializer block that sets up the font scales for the labels and the sizes for the images.
*/
static {
TITLE_LABEL.setFontScale(2f);
CHARACTER1_BUTTON.getLabel().setFontScale(1.6f);
Expand Down
1 change: 0 additions & 1 deletion game/core/src/com/eng1/game/screens/LoadingScreen.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.Screen;
import com.badlogic.gdx.utils.viewport.ScreenViewport;
import com.eng1.game.HeslingtonHustle;
import com.badlogic.gdx.scenes.scene2d.Stage;

/**
Expand Down
1 change: 0 additions & 1 deletion game/core/src/com/eng1/game/screens/MainScreen.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package com.eng1.game.screens;

import com.eng1.game.HeslingtonHustle;
import com.badlogic.gdx.Screen;

Check warning on line 3 in game/core/src/com/eng1/game/screens/MainScreen.java

View workflow job for this annotation

GitHub Actions / Qodana Community for JVM

Unused import

Unused import `import com.badlogic.gdx.Screen;`
import com.badlogic.gdx.*;
import com.badlogic.gdx.Input.Keys;
Expand Down
2 changes: 0 additions & 2 deletions game/desktop/src/com/eng1/game/DesktopLauncher.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
package com.eng1.game;
import com.badlogic.gdx.Graphics;
import com.badlogic.gdx.graphics.glutils.HdpiMode;
import com.eng1.game.HeslingtonHustle;

import com.badlogic.gdx.backends.lwjgl3.Lwjgl3Application;
import com.badlogic.gdx.backends.lwjgl3.Lwjgl3ApplicationConfiguration;
Expand Down

0 comments on commit f35336e

Please sign in to comment.