From 661b93f566c0e6fbb667417a65b4cf60ab522f20 Mon Sep 17 00:00:00 2001 From: Yazan Alaamer Date: Fri, 3 Feb 2023 22:21:34 +0100 Subject: [PATCH] refactoring: change some of the game texts --- src/main/java/game/StartDarkSoulsGame.java | 10 ++++----- .../compile/default-compile/inputFiles.lst | 22 +++++++++---------- .../default-testCompile/inputFiles.lst | 10 ++++----- 3 files changed, 21 insertions(+), 21 deletions(-) diff --git a/src/main/java/game/StartDarkSoulsGame.java b/src/main/java/game/StartDarkSoulsGame.java index 11d1112..de82f7a 100644 --- a/src/main/java/game/StartDarkSoulsGame.java +++ b/src/main/java/game/StartDarkSoulsGame.java @@ -156,7 +156,7 @@ public class StartDarkSoulsGame { } public void townGate() { position = "townGate"; - mainTextArea.setText("You are at the Gate of the town.\n A guard is standing in front of you. WHAT DO YOU DO !?"); + mainTextArea.setText("You are at the Gate of the town.\n A guard is standing in front of you. What are you going to do !?"); choice1.setText("Talk to the gurad "); choice2.setText("Attack the guard"); choice3.setText("Leave"); @@ -197,7 +197,7 @@ public class StartDarkSoulsGame { } public void north() { position= "north"; - mainTextArea.setText("You Are at Siofra River.\n this Water is blessed Drink it. \n ( + 2HP)"); + mainTextArea.setText("You Are at Siofra River.\n this Water is blessed Drink it. \n (+ 2HP)"); playerHP = playerHP +2; hpLabelNumber.setText(""+ playerHP); choice1.setText("GO south"); @@ -219,7 +219,7 @@ public class StartDarkSoulsGame { public void west() { position = "west"; mainTextArea.setText("you are encounter with THE SOUl OF CINDER.\n" - + "THE SOUl OF CINDER: ashen one long time no see \n hhhhhhhhhhhhhhhh "); + + "THE SOUl OF CINDER: ashen one long time no see "); choice1.setText("Fight"); choice2.setText("Run for your live"); choice3.setText(""); @@ -228,7 +228,7 @@ public class StartDarkSoulsGame { public void fight() { position = "fight"; mainTextArea.setText("Monster HP:"+ monsterHP + " \n" - + " THE SOUl OF CINDER: Run for your life ASHEN ONE "); + + " The Soul of Cinder: Run for your life ASHEN ONE "); choice1.setText("Attack"); choice2.setText("Run for your live"); choice3.setText(""); @@ -269,7 +269,7 @@ public class StartDarkSoulsGame { } public void win() { position = "win"; - mainTextArea.setText("THE SOUl OF CINDER has been defeated.\n" + mainTextArea.setText("The Soul of Cinder has been defeated.\n" + "(item dropped: Ashera Ring "); AshuraRing = 1; choice1.setText("Go east"); 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 f86d421..dd1af97 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,11 +1,11 @@ -C:\Users\Halil\MiniGameProject\src\main\java\Gui\GameGui.java -C:\Users\Halil\MiniGameProject\src\main\java\game\runGame.java -C:\Users\Halil\MiniGameProject\src\main\java\game\StartDarkSoulsGame.java -C:\Users\Halil\MiniGameProject\src\main\java\Gui\gui.java -C:\Users\Halil\MiniGameProject\src\main\java\game\StartTicTacToeGame.java -C:\Users\Halil\MiniGameProject\src\main\java\Gui\GameGuiInterface.java -C:\Users\Halil\MiniGameProject\src\main\java\Gui\GuiInterface.java -C:\Users\Halil\MiniGameProject\src\main\java\Gui\StartGameGui.java -C:\Users\Halil\MiniGameProject\src\main\java\main.java -C:\Users\Halil\MiniGameProject\src\main\java\Gui\ActionHandler.java -C:\Users\Halil\MiniGameProject\src\main\java\game\loadNextQuestion.java +C:\Users\yazan\MiniGameProject\src\main\java\game\StartDarkSoulsGame.java +C:\Users\yazan\MiniGameProject\src\main\java\game\runGame.java +C:\Users\yazan\MiniGameProject\src\main\java\Gui\gui.java +C:\Users\yazan\MiniGameProject\src\main\java\Gui\StartGameGui.java +C:\Users\yazan\MiniGameProject\src\main\java\game\loadNextQuestion.java +C:\Users\yazan\MiniGameProject\src\main\java\game\StartTicTacToeGame.java +C:\Users\yazan\MiniGameProject\src\main\java\Gui\ActionHandler.java +C:\Users\yazan\MiniGameProject\src\main\java\Gui\GameGui.java +C:\Users\yazan\MiniGameProject\src\main\java\main.java +C:\Users\yazan\MiniGameProject\src\main\java\Gui\GameGuiInterface.java +C:\Users\yazan\MiniGameProject\src\main\java\Gui\GuiInterface.java diff --git a/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/inputFiles.lst b/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/inputFiles.lst index 73def08..470a3c7 100644 --- a/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/inputFiles.lst +++ b/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/inputFiles.lst @@ -1,5 +1,5 @@ -C:\Users\Halil\MiniGameProject\src\test\java\game\loadNextQuestionTest.java -C:\Users\Halil\MiniGameProject\src\test\java\Gui\GameGuiTest.java -C:\Users\Halil\MiniGameProject\src\test\java\game\runGameTest.java -C:\Users\Halil\MiniGameProject\src\test\java\Gui\guiTest.java -C:\Users\Halil\MiniGameProject\src\test\java\Gui\ActionHandlerTest.java +C:\Users\yazan\MiniGameProject\src\test\java\game\loadNextQuestionTest.java +C:\Users\yazan\MiniGameProject\src\test\java\Gui\guiTest.java +C:\Users\yazan\MiniGameProject\src\test\java\Gui\GameGuiTest.java +C:\Users\yazan\MiniGameProject\src\test\java\game\runGameTest.java +C:\Users\yazan\MiniGameProject\src\test\java\Gui\ActionHandlerTest.java