cell class plus count method
This commit is contained in:
parent
f2ca79f8bd
commit
9f9991791a
|
|
@ -22,7 +22,7 @@ public class Simulator extends Thread {
|
|||
|
||||
private boolean stopFlag;
|
||||
private boolean pauseFlag;
|
||||
private boolean loopingBorder;
|
||||
private boolean loopingBorderFlag;
|
||||
private boolean clickActionFlag;
|
||||
private int loopDelay = 150;
|
||||
private int width=100;
|
||||
|
|
@ -35,7 +35,7 @@ public class Simulator extends Thread {
|
|||
mjf = mjfParam;
|
||||
stopFlag=false;
|
||||
pauseFlag=false;
|
||||
loopingBorder=false;
|
||||
loopingBorderFlag=false;
|
||||
clickActionFlag=false;
|
||||
|
||||
agents = new ArrayList<Agent>();
|
||||
|
|
@ -315,11 +315,12 @@ public class Simulator extends Thread {
|
|||
|
||||
public boolean isLoopingBorder() {
|
||||
//TODO : complete method with proper return
|
||||
return false;
|
||||
return loopingBorderFlag;
|
||||
}
|
||||
|
||||
public void toggleLoopingBorder() {
|
||||
//TODO : complete method
|
||||
loopingBorderFlag= !loopingBorderFlag;
|
||||
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue