Change namespace to uk.mgrove.ac.soton.comp1206

This commit is contained in:
2023-03-25 22:57:10 +00:00
parent 0cccefdb9c
commit ab1c38cb2c
18 changed files with 50 additions and 49 deletions

View File

@@ -1,7 +1,7 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<groupId>uk.ac.soton.comp1206</groupId> <groupId>uk.mgrove.ac.soton.comp1206</groupId>
<artifactId>tetrecs</artifactId> <artifactId>tetrecs</artifactId>
<version>1.0-SNAPSHOT</version> <version>1.0-SNAPSHOT</version>
<properties> <properties>
@@ -68,7 +68,7 @@
<shadedArtifactAttached>true</shadedArtifactAttached> <shadedArtifactAttached>true</shadedArtifactAttached>
<transformers> <transformers>
<transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer"> <transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
<mainClass>uk.ac.soton.comp1206.Launcher</mainClass> <mainClass>uk.mgrove.ac.soton.comp1206.Launcher</mainClass>
</transformer> </transformer>
</transformers> </transformers>
</configuration> </configuration>
@@ -134,7 +134,7 @@
<artifactId>javafx-maven-plugin</artifactId> <artifactId>javafx-maven-plugin</artifactId>
<version>0.0.8</version> <version>0.0.8</version>
<configuration> <configuration>
<mainClass>uk.ac.soton.comp1206/uk.ac.soton.comp1206.App</mainClass> <mainClass>uk.mgrove.ac.soton.comp1206/uk.mgrove.ac.soton.comp1206.App</mainClass>
</configuration> </configuration>
</plugin> </plugin>
</plugins> </plugins>

View File

@@ -1,16 +1,16 @@
module uk.ac.soton.comp1206 { module uk.mgrove.ac.soton.comp1206 {
requires java.scripting; requires java.scripting;
requires javafx.controls; requires javafx.controls;
requires javafx.fxml; requires javafx.fxml;
requires javafx.media; requires javafx.media;
requires org.apache.logging.log4j; requires org.apache.logging.log4j;
requires nv.websocket.client; requires nv.websocket.client;
opens uk.ac.soton.comp1206.ui to javafx.fxml; opens uk.mgrove.ac.soton.comp1206.ui to javafx.fxml;
exports uk.ac.soton.comp1206; exports uk.mgrove.ac.soton.comp1206;
exports uk.ac.soton.comp1206.ui; exports uk.mgrove.ac.soton.comp1206.ui;
exports uk.ac.soton.comp1206.network; exports uk.mgrove.ac.soton.comp1206.network;
exports uk.ac.soton.comp1206.scene; exports uk.mgrove.ac.soton.comp1206.scene;
exports uk.ac.soton.comp1206.event; exports uk.mgrove.ac.soton.comp1206.event;
exports uk.ac.soton.comp1206.component; exports uk.mgrove.ac.soton.comp1206.component;
exports uk.ac.soton.comp1206.game; exports uk.mgrove.ac.soton.comp1206.game;
} }

View File

@@ -1,4 +1,4 @@
package uk.ac.soton.comp1206; package uk.mgrove.ac.soton.comp1206;
import javafx.application.Application; import javafx.application.Application;
import javafx.stage.Stage; import javafx.stage.Stage;
@@ -6,7 +6,7 @@ import javafx.stage.Stage;
import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger; import org.apache.logging.log4j.Logger;
import uk.ac.soton.comp1206.ui.GameWindow; import uk.mgrove.ac.soton.comp1206.ui.GameWindow;
/** /**
* JavaFX Application class * JavaFX Application class

View File

@@ -1,4 +1,4 @@
package uk.ac.soton.comp1206; package uk.mgrove.ac.soton.comp1206;
/** /**
* This Launcher class is used to allow the game to be built into a shaded jar file which then loads JavaFX. This * This Launcher class is used to allow the game to be built into a shaded jar file which then loads JavaFX. This
@@ -12,6 +12,4 @@ public class Launcher {
*/ */
public static void main(String[] args) { public static void main(String[] args) {
App.main(args); App.main(args);
} }
}

View File

@@ -1,4 +1,4 @@
package uk.ac.soton.comp1206.component; package uk.mgrove.ac.soton.comp1206.component;
import javafx.beans.property.IntegerProperty; import javafx.beans.property.IntegerProperty;
import javafx.beans.property.SimpleIntegerProperty; import javafx.beans.property.SimpleIntegerProperty;

View File

@@ -1,4 +1,4 @@
package uk.ac.soton.comp1206.component; package uk.mgrove.ac.soton.comp1206.component;
import javafx.beans.NamedArg; import javafx.beans.NamedArg;

View File

@@ -1,11 +1,11 @@
package uk.ac.soton.comp1206.component; package uk.mgrove.ac.soton.comp1206.component;
import javafx.scene.input.MouseEvent; import javafx.scene.input.MouseEvent;
import javafx.scene.layout.GridPane; import javafx.scene.layout.GridPane;
import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger; import org.apache.logging.log4j.Logger;
import uk.ac.soton.comp1206.event.BlockClickedListener; import uk.mgrove.ac.soton.comp1206.event.BlockClickedListener;
import uk.ac.soton.comp1206.game.Grid; import uk.mgrove.ac.soton.comp1206.game.Grid;
/** /**
* A GameBoard is a visual component to represent the visual GameBoard. * A GameBoard is a visual component to represent the visual GameBoard.

View File

@@ -1,6 +1,6 @@
package uk.ac.soton.comp1206.event; package uk.mgrove.ac.soton.comp1206.event;
import uk.ac.soton.comp1206.component.GameBlock; import uk.mgrove.ac.soton.comp1206.component.GameBlock;
/** /**
* The Block Clicked listener is used to handle the event when a block in a GameBoard is clicked. It passes the * The Block Clicked listener is used to handle the event when a block in a GameBoard is clicked. It passes the

View File

@@ -1,4 +1,4 @@
package uk.ac.soton.comp1206.event; package uk.mgrove.ac.soton.comp1206.event;
/** /**
* The Communications Listener is used for listening to messages received by the communicator. * The Communications Listener is used for listening to messages received by the communicator.

View File

@@ -1,8 +1,8 @@
package uk.ac.soton.comp1206.game; package uk.mgrove.ac.soton.comp1206.game;
import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger; import org.apache.logging.log4j.Logger;
import uk.ac.soton.comp1206.component.GameBlock; import uk.mgrove.ac.soton.comp1206.component.GameBlock;
/** /**
* The Game class handles the main logic, state and properties of the TetrECS game. Methods to manipulate the game state * The Game class handles the main logic, state and properties of the TetrECS game. Methods to manipulate the game state

View File

@@ -1,4 +1,4 @@
package uk.ac.soton.comp1206.game; package uk.mgrove.ac.soton.comp1206.game;
/** /**
* Instances of GamePiece Represents the model of a specific Game Piece with it's block makeup. * Instances of GamePiece Represents the model of a specific Game Piece with it's block makeup.

View File

@@ -1,4 +1,4 @@
package uk.ac.soton.comp1206.game; package uk.mgrove.ac.soton.comp1206.game;
import javafx.beans.property.IntegerProperty; import javafx.beans.property.IntegerProperty;
import javafx.beans.property.SimpleIntegerProperty; import javafx.beans.property.SimpleIntegerProperty;

View File

@@ -1,10 +1,10 @@
package uk.ac.soton.comp1206.network; package uk.mgrove.ac.soton.comp1206.network;
import com.neovisionaries.ws.client.*; import com.neovisionaries.ws.client.*;
import javafx.scene.control.Alert; import javafx.scene.control.Alert;
import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger; import org.apache.logging.log4j.Logger;
import uk.ac.soton.comp1206.event.CommunicationsListener; import uk.mgrove.ac.soton.comp1206.event.CommunicationsListener;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; import java.util.List;

View File

@@ -1,9 +1,9 @@
package uk.ac.soton.comp1206.scene; package uk.mgrove.ac.soton.comp1206.scene;
import javafx.scene.Scene; import javafx.scene.Scene;
import javafx.scene.paint.Color; import javafx.scene.paint.Color;
import uk.ac.soton.comp1206.ui.GamePane; import uk.mgrove.ac.soton.comp1206.ui.GamePane;
import uk.ac.soton.comp1206.ui.GameWindow; import uk.mgrove.ac.soton.comp1206.ui.GameWindow;
/** /**
* A Base Scene used in the game. Handles common functionality between all scenes. * A Base Scene used in the game. Handles common functionality between all scenes.

View File

@@ -1,13 +1,13 @@
package uk.ac.soton.comp1206.scene; package uk.mgrove.ac.soton.comp1206.scene;
import javafx.scene.layout.*; import javafx.scene.layout.*;
import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger; import org.apache.logging.log4j.Logger;
import uk.ac.soton.comp1206.component.GameBlock; import uk.mgrove.ac.soton.comp1206.component.GameBlock;
import uk.ac.soton.comp1206.component.GameBoard; import uk.mgrove.ac.soton.comp1206.component.GameBoard;
import uk.ac.soton.comp1206.game.Game; import uk.mgrove.ac.soton.comp1206.game.Game;
import uk.ac.soton.comp1206.ui.GamePane; import uk.mgrove.ac.soton.comp1206.ui.GamePane;
import uk.ac.soton.comp1206.ui.GameWindow; import uk.mgrove.ac.soton.comp1206.ui.GameWindow;
/** /**
* The Single Player challenge scene. Holds the UI for the single player challenge mode in the game. * The Single Player challenge scene. Holds the UI for the single player challenge mode in the game.

View File

@@ -1,4 +1,4 @@
package uk.ac.soton.comp1206.scene; package uk.mgrove.ac.soton.comp1206.scene;
import javafx.event.ActionEvent; import javafx.event.ActionEvent;
import javafx.scene.control.Button; import javafx.scene.control.Button;
@@ -6,8 +6,8 @@ import javafx.scene.layout.*;
import javafx.scene.text.Text; import javafx.scene.text.Text;
import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger; import org.apache.logging.log4j.Logger;
import uk.ac.soton.comp1206.ui.GamePane; import uk.mgrove.ac.soton.comp1206.ui.GamePane;
import uk.ac.soton.comp1206.ui.GameWindow; import uk.mgrove.ac.soton.comp1206.ui.GameWindow;
/** /**
* The main menu of the game. Provides a gateway to the rest of the game. * The main menu of the game. Provides a gateway to the rest of the game.

View File

@@ -1,4 +1,4 @@
package uk.ac.soton.comp1206.ui; package uk.mgrove.ac.soton.comp1206.ui;
import javafx.geometry.Pos; import javafx.geometry.Pos;
import javafx.scene.layout.*; import javafx.scene.layout.*;

View File

@@ -1,4 +1,4 @@
package uk.ac.soton.comp1206.ui; package uk.mgrove.ac.soton.comp1206.ui;
import javafx.application.Platform; import javafx.application.Platform;
import javafx.scene.Scene; import javafx.scene.Scene;
@@ -8,9 +8,12 @@ import javafx.scene.text.Font;
import javafx.stage.Stage; import javafx.stage.Stage;
import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger; import org.apache.logging.log4j.Logger;
import uk.ac.soton.comp1206.App; import uk.mgrove.ac.soton.comp1206.App;
import uk.ac.soton.comp1206.network.Communicator; import uk.mgrove.ac.soton.comp1206.network.Communicator;
import uk.ac.soton.comp1206.scene.*; import uk.mgrove.ac.soton.comp1206.scene.*;
import uk.mgrove.ac.soton.comp1206.scene.BaseScene;
import uk.mgrove.ac.soton.comp1206.scene.ChallengeScene;
import uk.mgrove.ac.soton.comp1206.scene.MenuScene;
/** /**
* The GameWindow is the single window for the game where everything takes place. To move between screens in the game, * The GameWindow is the single window for the game where everything takes place. To move between screens in the game,