Browse Source

refactoring:

main
fdai4616 2 years ago
parent
commit
ff5c8b9832
  1. 6
      src/main/java/PingPong/Score.java
  2. BIN
      target/hellsgamers-1.0-SNAPSHOT.jar
  3. 2
      target/maven-archiver/pom.properties
  4. 1
      target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst
  5. 5
      target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/createdFiles.lst
  6. 5
      target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/inputFiles.lst
  7. BIN
      target/test-classes/ShipTest.class
  8. BIN
      target/test-classes/test_AIGridGUI.class
  9. BIN
      target/test-classes/test_BShip.class
  10. BIN
      target/test-classes/test_CollisionChecker.class
  11. BIN
      target/test-classes/test_Ship.class
  12. BIN
      target/test-classes/test_Snake.class
  13. 2
      team.md

6
src/main/java/PingPong/Score.java

@ -16,7 +16,7 @@ public class Score extends Rectangle {
} }
public void draw(Graphics g) { public void draw(Graphics g) {
g.setColor(Color.white);
ScoreColor(g);
g.setFont(new Font("Consolas", Font.BOLD,50)); g.setFont(new Font("Consolas", Font.BOLD,50));
g.drawLine(FRAME_WIDTH/2, 0, FRAME_WIDTH/2, FRAME_HEIGHT); g.drawLine(FRAME_WIDTH/2, 0, FRAME_WIDTH/2, FRAME_HEIGHT);
g.drawOval((FRAME_WIDTH/2)-(COURT_CIRCLE/2), (FRAME_HEIGHT/2) - (COURT_CIRCLE/2), COURT_CIRCLE,COURT_CIRCLE); g.drawOval((FRAME_WIDTH/2)-(COURT_CIRCLE/2), (FRAME_HEIGHT/2) - (COURT_CIRCLE/2), COURT_CIRCLE,COURT_CIRCLE);
@ -25,4 +25,8 @@ public class Score extends Rectangle {
g.drawString(String.valueOf(player_2/10) + String.valueOf(player_2%10), (FRAME_WIDTH/2)+ 20, 50); g.drawString(String.valueOf(player_2/10) + String.valueOf(player_2%10), (FRAME_WIDTH/2)+ 20, 50);
} }
private static void ScoreColor(Graphics g) {
g.setColor(Color.white);
}
} }

BIN
target/hellsgamers-1.0-SNAPSHOT.jar

2
target/maven-archiver/pom.properties

@ -1,5 +1,5 @@
#Generated by Maven #Generated by Maven
#Wed Feb 08 21:32:53 CET 2023
#Thu Feb 09 20:07:26 CET 2023
groupId=Hellsgamers groupId=Hellsgamers
artifactId=hellsgamers artifactId=hellsgamers
version=1.0-SNAPSHOT version=1.0-SNAPSHOT

1
target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst

@ -4,7 +4,6 @@ BattleShip\BSButton.class
Snake\Window.class Snake\Window.class
PingPong\GamePanel$AL.class PingPong\GamePanel$AL.class
Snake\Controller$1.class Snake\Controller$1.class
MenuPanel$GameFrame.class
BattleShip\Ship.class BattleShip\Ship.class
PingPong\Ball.class PingPong\Ball.class
BattleShip\BShip$NewGameListener.class BattleShip\BShip$NewGameListener.class

5
target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/createdFiles.lst

@ -0,0 +1,5 @@
test_BShip.class
test_AIGridGUI.class
test_Snake.class
test_CollisionChecker.class
test_Ship.class

5
target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/inputFiles.lst

@ -0,0 +1,5 @@
C:\Users\Laura\IdeaProjects\hellsgamers\src\test\java\test_CollisionChecker.java
C:\Users\Laura\IdeaProjects\hellsgamers\src\test\java\test_Snake.java
C:\Users\Laura\IdeaProjects\hellsgamers\src\test\java\test_BShip.java
C:\Users\Laura\IdeaProjects\hellsgamers\src\test\java\test_Ship.java
C:\Users\Laura\IdeaProjects\hellsgamers\src\test\java\test_AIGridGUI.java

BIN
target/test-classes/ShipTest.class

BIN
target/test-classes/AIGridGUITest.class → target/test-classes/test_AIGridGUI.class

BIN
target/test-classes/BShipTest.class → target/test-classes/test_BShip.class

BIN
target/test-classes/CollisionCheckerTest.class → target/test-classes/test_CollisionChecker.class

BIN
target/test-classes/test_Ship.class

BIN
target/test-classes/SnakeTest.class → target/test-classes/test_Snake.class

2
team.md

@ -2,3 +2,5 @@
- Justin Senn, fdai7107 - Justin Senn, fdai7107
- Eren Esen, fdai4581 - Eren Esen, fdai4581
- Brice Tchoumi, fdai6138 - Brice Tchoumi, fdai6138
Bei Berkan, die mit der FD Nummer bewerten.
Loading…
Cancel
Save