Compare commits
2 Commits
48d96c13be
...
a60c16d748
| Author | SHA1 | Date |
|---|---|---|
|
|
a60c16d748 | |
|
|
76939402e5 |
|
|
@ -12,13 +12,13 @@ public class Simulator extends Thread {
|
|||
private final int LIFE_TYPE_NUM = 4;
|
||||
//Conway Radius : 1
|
||||
private final int LIFE_AREA_RADIUS = 1;
|
||||
//Animal Neighborhood Radius : 5
|
||||
//Animal Neighborhood Radius : 2
|
||||
private final int ANIMAL_AREA_RADIUS = 2;
|
||||
private ArrayList<Integer> fieldSurviveValues;
|
||||
private ArrayList<Integer> fieldBirthValues;
|
||||
|
||||
private ArrayList<Agent> agents;
|
||||
|
||||
private ArrayList<Cell> cells;
|
||||
private boolean stopFlag;
|
||||
private boolean pauseFlag;
|
||||
private boolean loopingBorder;
|
||||
|
|
@ -33,6 +33,7 @@ public class Simulator extends Thread {
|
|||
pauseFlag=false;
|
||||
loopingBorder=false;
|
||||
clickActionFlag=false;
|
||||
cells = new ArrayList<Cell>();
|
||||
agents = new ArrayList<Agent>();
|
||||
fieldBirthValues = new ArrayList<Integer>();
|
||||
fieldSurviveValues = new ArrayList<Integer>();
|
||||
|
|
@ -267,6 +268,9 @@ public class Simulator extends Thread {
|
|||
|
||||
public void setLoopDelay(int delay) {
|
||||
//TODO : complete method
|
||||
<<<<<<< HEAD
|
||||
loopDelay=delay;
|
||||
=======
|
||||
// this.loopDelay = delay;
|
||||
// if (pauseFlag) {
|
||||
// return;
|
||||
|
|
@ -278,6 +282,7 @@ public class Simulator extends Thread {
|
|||
// Thread.currentThread().interrupt(); // Restore interrupted status.
|
||||
// System.err.println("Simulation step was interrupted.");
|
||||
// }
|
||||
>>>>>>> branch 'master' of https://gitarero.ecam.fr/raphael.savio/OOP_E4_Project.git
|
||||
}
|
||||
|
||||
public void toggleClickAction() {
|
||||
|
|
|
|||
Loading…
Reference in New Issue