actual the togglepause

This commit is contained in:
kry 2024-05-07 17:26:13 +02:00
parent f78952b37d
commit 918d76cec8
1 changed files with 10 additions and 1 deletions

View File

@ -136,7 +136,8 @@ public class Simulator extends Thread {
* method called when clicking pause button
*/
public void togglePause() {
// TODO : actually toggle the corresponding flag
// TODO : actually toggle the corresponding flag (done)
pauseFlag = true;
}
/**
@ -144,6 +145,14 @@ public class Simulator extends Thread {
*/
public void clickCell(int x, int y) {
//TODO : complete method
//Called when clicking on the GUI at the coordinates provided as arguments
//Behaviour will vary depending on the clickActionFlagValue flag:
// Cell case (default) : toggles the state of the cell at coordinates x,y.
//Agent case : create an Agent (Sheep provided for example) at provided
//coordinates.
// You might want to implement more behaviors for the click depending on
//different values of the flag (its type can be changed to tolerate more values)
}
/**