-System out has been implemented

This commit is contained in:
Andrin Fassbind 2021-10-08 09:20:26 +02:00
parent 2a10ee86d1
commit 7b0735d68d
1 changed files with 5 additions and 5 deletions

View File

@ -29,7 +29,7 @@ public class Language {
public void setOutputLanguage(String outputLanguage){
if(checkForValidLanguage(outputLanguage)){
this.outputLanguage=outputLanguage;
checkLanguage("Sprache auf Deutsch geändert","Language changed to english","Đã thay đổi ngôn ngữ sang tiếng Việt");
System.out.println(checkLanguage("Sprache auf Deutsch geändert","Language changed to english","Đã thay đổi ngôn ngữ sang tiếng Việt"));
}
}
@ -45,7 +45,7 @@ public class Language {
if(outputLanguage.equals(germanShortCut)||outputLanguage.equals(englishShortCut)||outputLanguage.equals(vietnameseShortCut)){
return true;
}
checkLanguage("Diese Sprache ist nicht zulässig","This Language is not valid","Ngôn ngữ này không được phép");
System.out.println(checkLanguage("Diese Sprache ist nicht zulässig","This Language is not valid","Ngôn ngữ này không được phép"));
return false;
}
@ -55,7 +55,7 @@ public class Language {
* @param player beinhaltet den Integer, welcher den Spieler representiert.
*/
public void outputWinnerText(int player){
checkLanguage("Spieler "+player+" hat gewonnen! Gut gespiel","Player "+player+" won! Well played genius!","Người chơi "+player+" đã thắng. Làm tốt!");
System.out.println(checkLanguage("Spieler "+player+" hat gewonnen! Gut gespiel","Player "+player+" won! Well played genius!","Người chơi "+player+" đã thắng. Làm tốt!"));
}
/**
@ -64,7 +64,7 @@ public class Language {
* @param nextPlayer beinhaltet den Integer, welcher den Spieler representiert.
*/
public void outputNextPlayerText(int nextPlayer){
checkLanguage("Du bist dran "+ nextPlayer,"It's your turn "+nextPlayer,"Đến lượt bạn "+nextPlayer);
System.out.println(checkLanguage("Du bist dran "+ nextPlayer,"It's your turn "+nextPlayer,"Đến lượt bạn "+nextPlayer));
}
/**
@ -72,7 +72,7 @@ public class Language {
* Diese Methode informiert den Nutzer über eine Konsolenausgabe, falls ein falsches Feld ausgewählt wird.
*/
public void outputWrongFieldSelected(){
checkLanguage("Dieses Feld ist nicht zulässig","This Field is not valid","Trường này không được phép");
System.out.println(checkLanguage("Dieses Feld ist nicht zulässig","This Field is not valid","Trường này không được phép"));
}
/**