Merge branch 'dev_squ'
This commit is contained in:
commit
9796d1a7c8
|
|
@ -0,0 +1,18 @@
|
||||||
|
package backend;
|
||||||
|
|
||||||
|
public class Cell {
|
||||||
|
protected int value;
|
||||||
|
protected int density;
|
||||||
|
|
||||||
|
protected Cell(int value, int density) {
|
||||||
|
this.value = value;
|
||||||
|
this.density = density;
|
||||||
|
}
|
||||||
|
|
||||||
|
public int getValue() {
|
||||||
|
return value;
|
||||||
|
}
|
||||||
|
public int getDensity() {
|
||||||
|
return density;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -226,6 +226,19 @@ public class Simulator extends Thread {
|
||||||
// set cell value to !currentCellValue
|
// set cell value to !currentCellValue
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void countAround(int x, int y) {
|
||||||
|
//enableLogs
|
||||||
|
//getCell
|
||||||
|
//if loopingBorder TRUE, border count as living.
|
||||||
|
if (loopingBorder == true){
|
||||||
|
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @return lines of file representing
|
* @return lines of file representing
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue