Skip to content

Commit

Permalink
Merge pull request #11 from AdvancedProgrammingSUT2022/aqaDanial
Browse files Browse the repository at this point in the history
چرا این ترم تموم نمیشه؟
  • Loading branch information
Danial-Gharib authored Apr 18, 2022
2 parents 4723a51 + cb18020 commit d482ffb
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/main/java/View/GameMenu.java
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public class GameMenu{

public GameMenu(Scanner scanner, GameMenuController gameMenuController){
this.gameMenuController = gameMenuController;
this.scanner = scanner;
GameMenu.scanner = scanner;
}

public static void run() {
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/View/LoginMenu.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ public class LoginMenu {
private final LoginMenuController loginMenuController;
private static Scanner scanner;
public LoginMenu(Scanner scanner , LoginMenuController loginMenuController) {
this.scanner = scanner;
LoginMenu.scanner = scanner;
this.loginMenuController = loginMenuController;
}

Expand Down
2 changes: 1 addition & 1 deletion src/main/java/View/MainMenu.java
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ public class MainMenu {
private final MainMenuController mainMenuController;
private static Scanner scanner;
public MainMenu(Scanner scanner , MainMenuController mainMenuController) {
this.scanner = scanner;
MainMenu.scanner = scanner;
this.mainMenuController = mainMenuController;
}

Expand Down
4 changes: 2 additions & 2 deletions src/main/java/View/ProfileMenu.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@

public class ProfileMenu {
private final ProfileMenuController profileMenuController;
private Scanner scanner;
private static Scanner scanner;
public ProfileMenu(Scanner scanner, ProfileMenuController profileMenuController){
this.scanner = scanner;
ProfileMenu.scanner = scanner;
this.profileMenuController = profileMenuController;
}

Expand Down

0 comments on commit d482ffb

Please sign in to comment.