From 7cfd470116119006aa577c59fb78d58ce1b24219 Mon Sep 17 00:00:00 2001 From: Abes Adam Date: Tue, 7 May 2024 16:33:39 +0200 Subject: [PATCH] Complete the getWithd and getHeight and returned the number of colimn and line --- OOP_D9_Project/src/src/backend/Simulator.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/OOP_D9_Project/src/src/backend/Simulator.java b/OOP_D9_Project/src/src/backend/Simulator.java index 9774cd3..62bf0c6 100644 --- a/OOP_D9_Project/src/src/backend/Simulator.java +++ b/OOP_D9_Project/src/src/backend/Simulator.java @@ -24,7 +24,8 @@ public class Simulator extends Thread { private boolean loopingBorder; private boolean clickActionFlag; private int loopDelay = 150; - + + //TODO : add missing attribute(s) public Simulator(MyInterface mjfParam) { @@ -51,12 +52,12 @@ public class Simulator extends Thread { public int getWidth() { //TODO : replace with proper return - return 0; + return COL_NUM; } public int getHeight() { //TODO : replace with proper return - return 0; + return LINE_NUM; } //Should probably stay as is