diff --git a/.idea/compiler.xml b/.idea/compiler.xml index 4c0c5b6..2c583f8 100644 --- a/.idea/compiler.xml +++ b/.idea/compiler.xml @@ -6,7 +6,6 @@ - diff --git a/src/main/java/MenuPanel.java b/src/main/java/MenuPanel.java index 098f221..c685056 100644 --- a/src/main/java/MenuPanel.java +++ b/src/main/java/MenuPanel.java @@ -1,5 +1,6 @@ import PingPong.GamePanel; + import javax.swing.*; import java.awt.*; import java.awt.event.KeyAdapter; @@ -38,6 +39,7 @@ public class MenuPanel extends JPanel { new GameFrame(); } + } } diff --git a/src/main/java/PingPong/Ball.java b/src/main/java/PingPong/Ball.java index 9fe0189..489760e 100644 --- a/src/main/java/PingPong/Ball.java +++ b/src/main/java/PingPong/Ball.java @@ -1,4 +1,11 @@ package PingPong; -public class Ball { +import java.awt.*; + +public class Ball extends Rectangle { +int xVelocity; + public void setXDirection (int randomXDirection){ + xVelocity = randomXDirection; + } + } diff --git a/target/classes/MenuPanel$AL.class b/target/classes/MenuPanel$AL.class index bbbd61b..7046c06 100644 Binary files a/target/classes/MenuPanel$AL.class and b/target/classes/MenuPanel$AL.class differ diff --git a/target/classes/MenuPanel$GameFrame.class b/target/classes/MenuPanel$GameFrame.class index 3799f31..a8279a0 100644 Binary files a/target/classes/MenuPanel$GameFrame.class and b/target/classes/MenuPanel$GameFrame.class differ diff --git a/target/classes/MenuPanel.class b/target/classes/MenuPanel.class index 8ee37da..2fbc45a 100644 Binary files a/target/classes/MenuPanel.class and b/target/classes/MenuPanel.class differ diff --git a/target/classes/PingPong/Ball.class b/target/classes/PingPong/Ball.class index a5ff251..df86139 100644 Binary files a/target/classes/PingPong/Ball.class and b/target/classes/PingPong/Ball.class differ diff --git a/target/hellsgamers-1.0-SNAPSHOT.jar b/target/hellsgamers-1.0-SNAPSHOT.jar index 4d7fbd0..4191a55 100644 Binary files a/target/hellsgamers-1.0-SNAPSHOT.jar and b/target/hellsgamers-1.0-SNAPSHOT.jar differ diff --git a/target/maven-archiver/pom.properties b/target/maven-archiver/pom.properties index 4df9572..22f93c5 100644 --- a/target/maven-archiver/pom.properties +++ b/target/maven-archiver/pom.properties @@ -1,5 +1,5 @@ #Generated by Maven -#Mon Feb 06 20:43:15 CET 2023 +#Tue Feb 07 11:52:01 CET 2023 groupId=Hellsgamers artifactId=hellsgamers version=1.0-SNAPSHOT diff --git a/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst b/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst index cb38d8f..2f632ce 100644 --- a/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst +++ b/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst @@ -1,22 +1,35 @@ -Snake\TextView.class MenuPanel.class PingPong\Score.class -PingPong\GamePanel.class +BattleShip\BSButton.class Snake\Window.class -Snake\Snake$1.class +Snake\Controller$1.class MenuPanel$GameFrame.class +BattleShip\Ship.class PingPong\Ball.class Snake\TextView$AnchorType.class +BattleShip\AIGridGUI$SetShipsListener.class MenuPanel$AL.class Main.class +Snake\Controller$GameState.class PingPong\Paddle.class -Snake\Apple.class -Snake\Snake.class +Snake\Game.class PingPong\GameFrame.class Snake\Controller.class -Snake\Drawable.class -MenuFrame.class +BattleShip\AIGridGUI$DirectionCompare.class +BattleShip\AIGridGUI.class Snake\Snake$SnakeDirection.class Snake\SnakeView.class Snake\AppleView.class +Snake\Controller$3.class +Snake\TextView.class +BattleShip\BShip.class +PingPong\GamePanel.class +Snake\Controller$MoveAction.class +Snake\Snake$1.class +Snake\Apple.class +Snake\Snake.class +BattleShip\Direction.class +Snake\Drawable.class +Snake\Controller$2.class +MenuFrame.class Snake\GameView.class diff --git a/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst b/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst index 8dba2b3..39e231f 100644 --- a/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst +++ b/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst @@ -1,17 +1,23 @@ -C:\Users\senni\IdeaProjects\hellsgamers\src\main\java\MenuPanel.java -C:\Users\senni\IdeaProjects\hellsgamers\src\main\java\PingPong\Paddle.java -C:\Users\senni\IdeaProjects\hellsgamers\src\main\java\PingPong\Ball.java -C:\Users\senni\IdeaProjects\hellsgamers\src\main\java\Snake\AppleView.java -C:\Users\senni\IdeaProjects\hellsgamers\src\main\java\Snake\Controller.java -C:\Users\senni\IdeaProjects\hellsgamers\src\main\java\PingPong\GamePanel.java -C:\Users\senni\IdeaProjects\hellsgamers\src\main\java\Snake\Snake.java -C:\Users\senni\IdeaProjects\hellsgamers\src\main\java\MenuFrame.java -C:\Users\senni\IdeaProjects\hellsgamers\src\main\java\Snake\Apple.java -C:\Users\senni\IdeaProjects\hellsgamers\src\main\java\Snake\Window.java -C:\Users\senni\IdeaProjects\hellsgamers\src\main\java\Main.java -C:\Users\senni\IdeaProjects\hellsgamers\src\main\java\Snake\SnakeView.java -C:\Users\senni\IdeaProjects\hellsgamers\src\main\java\Snake\TextView.java -C:\Users\senni\IdeaProjects\hellsgamers\src\main\java\PingPong\Score.java -C:\Users\senni\IdeaProjects\hellsgamers\src\main\java\Snake\GameView.java -C:\Users\senni\IdeaProjects\hellsgamers\src\main\java\PingPong\GameFrame.java -C:\Users\senni\IdeaProjects\hellsgamers\src\main\java\Snake\Drawable.java +C:\Users\Laura\IdeaProjects\hellsgamers\src\main\java\MenuPanel.java +C:\Users\Laura\IdeaProjects\hellsgamers\src\main\java\BattleShip\AIGridGUI.java +C:\Users\Laura\IdeaProjects\hellsgamers\src\main\java\Snake\AppleView.java +C:\Users\Laura\IdeaProjects\hellsgamers\src\main\java\PingPong\Paddle.java +C:\Users\Laura\IdeaProjects\hellsgamers\src\main\java\MenuFrame.java +C:\Users\Laura\IdeaProjects\hellsgamers\src\main\java\BattleShip\Direction.java +C:\Users\Laura\IdeaProjects\hellsgamers\src\main\java\Snake\Controller.java +C:\Users\Laura\IdeaProjects\hellsgamers\src\main\java\BattleShip\BShip.java +C:\Users\Laura\IdeaProjects\hellsgamers\src\main\java\PingPong\GamePanel.java +C:\Users\Laura\IdeaProjects\hellsgamers\src\main\java\Main.java +C:\Users\Laura\IdeaProjects\hellsgamers\src\main\java\PingPong\Score.java +C:\Users\Laura\IdeaProjects\hellsgamers\src\main\java\Snake\Snake.java +C:\Users\Laura\IdeaProjects\hellsgamers\src\main\java\Snake\GameView.java +C:\Users\Laura\IdeaProjects\hellsgamers\src\main\java\Snake\Drawable.java +C:\Users\Laura\IdeaProjects\hellsgamers\src\main\java\BattleShip\BSButton.java +C:\Users\Laura\IdeaProjects\hellsgamers\src\main\java\Snake\SnakeView.java +C:\Users\Laura\IdeaProjects\hellsgamers\src\main\java\Snake\Apple.java +C:\Users\Laura\IdeaProjects\hellsgamers\src\main\java\Snake\Game.java +C:\Users\Laura\IdeaProjects\hellsgamers\src\main\java\Snake\TextView.java +C:\Users\Laura\IdeaProjects\hellsgamers\src\main\java\BattleShip\Ship.java +C:\Users\Laura\IdeaProjects\hellsgamers\src\main\java\PingPong\GameFrame.java +C:\Users\Laura\IdeaProjects\hellsgamers\src\main\java\Snake\Window.java +C:\Users\Laura\IdeaProjects\hellsgamers\src\main\java\PingPong\Ball.java