Browse Source

refactoring: change some of the game texts

master
Yazan Alaamer 2 years ago
parent
commit
661b93f566
  1. 10
      src/main/java/game/StartDarkSoulsGame.java
  2. 22
      target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst
  3. 10
      target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/inputFiles.lst

10
src/main/java/game/StartDarkSoulsGame.java

@ -156,7 +156,7 @@ public class StartDarkSoulsGame {
} }
public void townGate() { public void townGate() {
position = "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 "); choice1.setText("Talk to the gurad ");
choice2.setText("Attack the guard"); choice2.setText("Attack the guard");
choice3.setText("Leave"); choice3.setText("Leave");
@ -197,7 +197,7 @@ public class StartDarkSoulsGame {
} }
public void north() { public void north() {
position= "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; playerHP = playerHP +2;
hpLabelNumber.setText(""+ playerHP); hpLabelNumber.setText(""+ playerHP);
choice1.setText("GO south"); choice1.setText("GO south");
@ -219,7 +219,7 @@ public class StartDarkSoulsGame {
public void west() { public void west() {
position = "west"; position = "west";
mainTextArea.setText("you are encounter with THE SOUl OF CINDER.\n" 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"); choice1.setText("Fight");
choice2.setText("Run for your live"); choice2.setText("Run for your live");
choice3.setText(""); choice3.setText("");
@ -228,7 +228,7 @@ public class StartDarkSoulsGame {
public void fight() { public void fight() {
position = "fight"; position = "fight";
mainTextArea.setText("Monster HP:"+ monsterHP + " \n" 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"); choice1.setText("Attack");
choice2.setText("Run for your live"); choice2.setText("Run for your live");
choice3.setText(""); choice3.setText("");
@ -269,7 +269,7 @@ public class StartDarkSoulsGame {
} }
public void win() { public void win() {
position = "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 "); + "(item dropped: Ashera Ring ");
AshuraRing = 1; AshuraRing = 1;
choice1.setText("Go east"); choice1.setText("Go east");

22
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

10
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
Loading…
Cancel
Save