From 376742e0c99cf9844883590d3b2c7940fa136e59 Mon Sep 17 00:00:00 2001 From: fdai7910 Date: Sat, 3 Feb 2024 20:24:30 +0100 Subject: [PATCH] added functionality to triggerDot function --- src/main/java/pacmanGame/Cell.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/pacmanGame/Cell.java b/src/main/java/pacmanGame/Cell.java index 46c71f2..808cde1 100644 --- a/src/main/java/pacmanGame/Cell.java +++ b/src/main/java/pacmanGame/Cell.java @@ -12,7 +12,8 @@ public class Cell { } public void triggerDot() { - //todo: code + this.type = "empty"; + map.gameManager.score += 10; } public void triggerPill() {