method change language added

This commit is contained in:
Leonardo Brandenberger 2021-10-07 17:24:24 +02:00
parent 5edbd7123e
commit f678b6a422
1 changed files with 11 additions and 0 deletions

View File

@ -1,2 +1,13 @@
public class Game {
Language language;
public Game() {
language = new Language("de");
}
public void changeLanguage(String language) {
this.language.setOutputLanguage(language);
}
}