cells arrayList
This commit is contained in:
parent
d0fc3379dc
commit
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,7 +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>();
|
||||
|
|
@ -263,6 +263,7 @@ public class Simulator extends Thread {
|
|||
|
||||
public void setLoopDelay(int delay) {
|
||||
//TODO : complete method
|
||||
loopDelay=delay;
|
||||
}
|
||||
|
||||
public void toggleClickAction() {
|
||||
|
|
|
|||
Loading…
Reference in New Issue