Browse Source

changed spelling in processInput method in GameManager

remotes/origin/playerRefactoring
fdai7910 11 months ago
parent
commit
9cb1310d2c
  1. 2
      src/main/java/pacmanGame/GameManager.java
  2. 2
      src/main/java/pacmanGame/Program.java

2
src/main/java/pacmanGame/GameManager.java

@ -92,7 +92,7 @@ public class GameManager {
return fruitTypes[randomNumber]; return fruitTypes[randomNumber];
} }
public void ProcessInput(char inputChar) {
public void processInput(char inputChar) {
if(inputChar == 27) {// 27 = ESC if(inputChar == 27) {// 27 = ESC
TogglePause(); TogglePause();
} }

2
src/main/java/pacmanGame/Program.java

@ -44,7 +44,7 @@ public class Program {
public void forwardInputToGameManager() { public void forwardInputToGameManager() {
try { try {
for (char inputChar : input.inputList) { for (char inputChar : input.inputList) {
gameManager.ProcessInput(inputChar);
gameManager.processInput(inputChar);
} }
} catch (Exception e) {} } catch (Exception e) {}
input.inputList.clear(); input.inputList.clear();

Loading…
Cancel
Save