Add Cell.java

This commit is contained in:
Balthazar SQUINABOL 2024-04-10 15:01:45 +02:00 committed by g le-chartier
parent d21cb1b21e
commit fce6baef3a
2 changed files with 31 additions and 0 deletions

18
src/backend/Cell.java Normal file
View File

@ -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;
}
}

View File

@ -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