Add Cell.java
This commit is contained in:
parent
d21cb1b21e
commit
fce6baef3a
|
|
@ -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
|
||||
}
|
||||
|
||||
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
|
||||
|
|
|
|||
Loading…
Reference in New Issue