CellViz
1.0
|
====== END OF ABSTRACT CLASSES ====== /// More...
#include <cells.h>
Public Member Functions | |
ParticleLife () | |
Default constructor for ParticleLife. More... | |
ParticleLife (int x, int y, string species) | |
Parameterized constructor for ParticleLife. More... | |
ParticleLife (const ParticleLife &cell) | |
int | get_x () |
int | get_y () |
string | get_species () |
![]() | |
virtual | ~CellularAutomaton ()=default |
Static Public Member Functions | |
static Board | compute (Board *board) |
Computes the state of the board with ParticleLife rules. More... | |
![]() | |
static void | compute (Board *board) |
Private Attributes | |
int | x |
int | y |
string | species |
Additional Inherited Members | |
![]() | |
CellularAutomaton ()=default | |
![]() | |
static void | compute (Board *board) |
====== END OF ABSTRACT CLASSES ====== ///
Represents a type of continuous cellular automaton called ParticleLife.
ParticleLife::ParticleLife | ( | ) |
Default constructor for ParticleLife.
ParticleLife::ParticleLife | ( | int | x, |
int | y, | ||
string | species | ||
) |
Parameterized constructor for ParticleLife.
x | The x-coordinate of the ParticleLife cell. |
y | The y-coordinate of the ParticleLife cell. |
species | The species identifier for the ParticleLife cell. |
|
inline |
Computes the state of the board with ParticleLife rules.
board | Pointer to the Board instance. |
string ParticleLife::get_species | ( | ) |
int ParticleLife::get_x | ( | ) |
int ParticleLife::get_y | ( | ) |
|
private |
|
private |
|
private |