summaryrefslogtreecommitdiff
path: root/pacman/controller
diff options
context:
space:
mode:
authorMikkel <mithe24@student.sdu.dk>2025-04-08 11:17:49 +0200
committermithe24 <mithe24@student.sdu.dk>2025-04-29 18:21:28 +0200
commit6687af6f7c7d5d4524fadad1129d50040293e05c (patch)
treee8437cfea3a526c2162cabc4c34f7d069e107068 /pacman/controller
downloadpacman-6687af6f7c7d5d4524fadad1129d50040293e05c.tar.gz
pacman-6687af6f7c7d5d4524fadad1129d50040293e05c.zip
Initial commit
squashed all previous commits to one.
Diffstat (limited to 'pacman/controller')
-rw-r--r--pacman/controller/pom.xml42
-rw-r--r--pacman/controller/src/main/java/module-info.java9
-rw-r--r--pacman/controller/src/main/java/pacman/controller/GameApp.java21
3 files changed, 72 insertions, 0 deletions
diff --git a/pacman/controller/pom.xml b/pacman/controller/pom.xml
new file mode 100644
index 0000000..e3a99f8
--- /dev/null
+++ b/pacman/controller/pom.xml
@@ -0,0 +1,42 @@
+<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://www.w3.org/maven-v4_0_0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+
+ <parent>
+ <groupId>com.gr15</groupId>
+ <artifactId>pacman</artifactId>
+ <version>1.0-SNAPSHOT</version>
+ <relativePath>../pom.xml</relativePath>
+ </parent>
+
+ <artifactId>controller</artifactId>
+
+ <dependencies>
+ <!-- Dependencies on Model and View Modules -->
+ <dependency>
+ <groupId>com.gr15</groupId>
+ <artifactId>model</artifactId>
+ <version>1.0-SNAPSHOT</version>
+ </dependency>
+ <dependency>
+ <groupId>com.gr15</groupId>
+ <artifactId>view</artifactId>
+ <version>1.0-SNAPSHOT</version>
+ </dependency>
+ </dependencies>
+
+ <build>
+ <plugins>
+ <!-- JavaFX Maven Plugin -->
+ <plugin>
+ <groupId>org.openjfx</groupId>
+ <artifactId>javafx-maven-plugin</artifactId>
+ <version>0.0.8</version>
+ <configuration>
+ <mainClass>pacman.controller.GameApp</mainClass>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+</project>
diff --git a/pacman/controller/src/main/java/module-info.java b/pacman/controller/src/main/java/module-info.java
new file mode 100644
index 0000000..75c422d
--- /dev/null
+++ b/pacman/controller/src/main/java/module-info.java
@@ -0,0 +1,9 @@
+/* module-info.java
+ * This acts as the manifest for the module.
+ */
+module pacman.controller {
+ requires javafx.controls; /* Declares a dependency on another module */
+ requires pacman.model; /* Should depenend on model, */
+ requires pacman.view; /* and view */
+ exports pacman.controller; /* exports make specific packages */
+} /* public to other modules */
diff --git a/pacman/controller/src/main/java/pacman/controller/GameApp.java b/pacman/controller/src/main/java/pacman/controller/GameApp.java
new file mode 100644
index 0000000..648dc15
--- /dev/null
+++ b/pacman/controller/src/main/java/pacman/controller/GameApp.java
@@ -0,0 +1,21 @@
+package pacman.controller;
+
+import javafx.application.Application;
+import javafx.stage.Stage;
+
+/**
+ * GameApp
+ */
+public class GameApp
+ extends Application {
+
+ @Override
+ public void start(Stage arg0) throws Exception {
+ // TODO Auto-generated method stub
+
+ }
+
+ public static void main(String[] args) {
+ launch(args);
+ }
+}