start redo clickCell for agents
This commit is contained in:
parent
8c1014bda6
commit
e8f2d84147
|
|
@ -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) {
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue