From 9cb1310d2c6bd07bd79db4e38c968185561bfee3 Mon Sep 17 00:00:00 2001 From: fdai7910 Date: Thu, 8 Feb 2024 02:06:40 +0100 Subject: [PATCH] changed spelling in processInput method in GameManager --- src/main/java/pacmanGame/GameManager.java | 2 +- src/main/java/pacmanGame/Program.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/pacmanGame/GameManager.java b/src/main/java/pacmanGame/GameManager.java index d7b9406..6814cf1 100644 --- a/src/main/java/pacmanGame/GameManager.java +++ b/src/main/java/pacmanGame/GameManager.java @@ -92,7 +92,7 @@ public class GameManager { return fruitTypes[randomNumber]; } - public void ProcessInput(char inputChar) { + public void processInput(char inputChar) { if(inputChar == 27) {// 27 = ESC TogglePause(); } diff --git a/src/main/java/pacmanGame/Program.java b/src/main/java/pacmanGame/Program.java index df6cdf2..9fdd07c 100644 --- a/src/main/java/pacmanGame/Program.java +++ b/src/main/java/pacmanGame/Program.java @@ -44,7 +44,7 @@ public class Program { public void forwardInputToGameManager() { try { for (char inputChar : input.inputList) { - gameManager.ProcessInput(inputChar); + gameManager.processInput(inputChar); } } catch (Exception e) {} input.inputList.clear();