first commit
This commit is contained in:
commit
b827bb4ce6
14 changed files with 673 additions and 0 deletions
35
GoL3D1/cellula.pde
Normal file
35
GoL3D1/cellula.pde
Normal file
|
@ -0,0 +1,35 @@
|
|||
public class Cellula{
|
||||
private int x, y, z; //posizione nella matriche
|
||||
private boolean living, willlive;
|
||||
|
||||
|
||||
public Cellula(int x, int y, int z){
|
||||
this.x = x;
|
||||
this.y = y;
|
||||
this.z = z;
|
||||
|
||||
living = false;
|
||||
willlive = false;
|
||||
}
|
||||
|
||||
public boolean isLiving(){
|
||||
return living;
|
||||
}
|
||||
|
||||
public boolean getWilllive(){
|
||||
return willlive;
|
||||
}
|
||||
|
||||
public void setLiving(boolean living){
|
||||
this.living = living;
|
||||
}
|
||||
|
||||
public void setWilllive(boolean willlive){
|
||||
this.willlive = willlive;
|
||||
}
|
||||
|
||||
public int[] getCoords(){
|
||||
int[] pos = { x, y, z};
|
||||
return pos;
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue