From fef13d59913c22795c4b36e11a7e21d8539266c7 Mon Sep 17 00:00:00 2001 From: fdai7910 Date: Thu, 8 Feb 2024 02:12:25 +0100 Subject: [PATCH] refactoring: changed spelling in ghostPlayerColision method in GameManager --- src/main/java/pacmanGame/GameManager.java | 2 +- src/test/java/pacmanTests/GameManagerTest.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/pacmanGame/GameManager.java b/src/main/java/pacmanGame/GameManager.java index 6814cf1..36f8f5d 100644 --- a/src/main/java/pacmanGame/GameManager.java +++ b/src/main/java/pacmanGame/GameManager.java @@ -110,7 +110,7 @@ public class GameManager { } - public boolean GhostPlayerColisionTest() { + public boolean ghostPlayerColisionTest() { for(int i = 0; i < ghosts.length; i++) { diff --git a/src/test/java/pacmanTests/GameManagerTest.java b/src/test/java/pacmanTests/GameManagerTest.java index 7b61411..8dbb68a 100644 --- a/src/test/java/pacmanTests/GameManagerTest.java +++ b/src/test/java/pacmanTests/GameManagerTest.java @@ -55,7 +55,7 @@ class GameManagerTest { GameManager gameManager = new GameManager(); gameManager.player.position = gameManager.ghosts[0].position.Clone(); //act - boolean collision = gameManager.GhostPlayerColisionTest(); + boolean collision = gameManager.ghostPlayerColisionTest(); boolean expected = true; // assert @@ -70,7 +70,7 @@ class GameManagerTest { gameManager.player.position = new Vector2(2,3); gameManager.ghosts[0].position = new Vector2(4,5); //act - boolean collision = gameManager.GhostPlayerColisionTest(); + boolean collision = gameManager.ghostPlayerColisionTest(); boolean expected = false; // assert