From e8f2d841471af95d1cf8d1ce3d1fa91be8065f0b Mon Sep 17 00:00:00 2001 From: laure Date: Wed, 29 May 2024 13:50:43 +0200 Subject: [PATCH] start redo clickCell for agents --- src/backend/Simulator.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/backend/Simulator.java b/src/backend/Simulator.java index 89936b6..50c8018 100644 --- a/src/backend/Simulator.java +++ b/src/backend/Simulator.java @@ -224,7 +224,13 @@ public class Simulator extends Thread { * method called when clicking on a cell in the interface */ public void clickCell(int x, int y) { - world.setCell(x, y, getCell(x, y) == 1 ? 0 : 1); + if (clickActionFlag==0) { + world.setCell(x, y, getCell(x, y) == 1 ? 0 : 1); + } else if (clickActionFlag==1) { + + } else if (clickActionFlag==2) { + + } }