start redo clickCell for agents

This commit is contained in:
Laure BEL 2024-05-29 13:50:43 +02:00
parent 8c1014bda6
commit e8f2d84147
1 changed files with 7 additions and 1 deletions

View File

@ -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) {
}
}