|
CellViz
1.0
|
Represents a type of cellular automaton called BasicLife. More...
#include <cells.h>
Public Member Functions | |
| BasicLife (int x, int y, double value) | |
| Parameterized constructor for BasicLife. More... | |
| int | get_x () |
| Gets the x-coordinate of the BasicLife cell. More... | |
| int | get_y () |
| Gets the y-coordinate of the BasicLife cell. More... | |
| double | get_value () |
| Gets the value of the BasicLife cell. More... | |
Public Member Functions inherited from DiscreteAutomaton | |
| DiscreteAutomaton () | |
| Default constructor for DiscreteAutomaton. More... | |
| DiscreteAutomaton (int x, int y, double value) | |
| Parameterized constructor for DiscreteAutomaton. More... | |
| DiscreteAutomaton (const DiscreteAutomaton &cell) | |
| Copy constructor for DiscreteAutomaton. More... | |
| void | set_x (int x) |
| Sets the x-coordinate of the DiscreteAutomaton. More... | |
| void | set_y (int y) |
| Sets the y-coordinate of the DiscreteAutomaton. More... | |
| void | set_value (double value) |
| Sets the value of the DiscreteAutomaton. More... | |
| bool | operator== (const DiscreteAutomaton &cell) const |
| Equality operator for DiscreteAutomaton. More... | |
Public Member Functions inherited from CellularAutomaton | |
| virtual | ~CellularAutomaton ()=default |
Static Public Member Functions | |
| static void | compute (Board *board) |
| Computes the next state of the Board based on BasicLife rules. More... | |
Private Attributes | |
| int | x |
| int | y |
| double | value |
Additional Inherited Members | |
Protected Member Functions inherited from CellularAutomaton | |
| CellularAutomaton ()=default | |
Static Protected Member Functions inherited from CellularAutomaton | |
| static void | compute (Board *board) |
Represents a type of cellular automaton called BasicLife.
| BasicLife::BasicLife | ( | int | x, |
| int | y, | ||
| double | value | ||
| ) |
Parameterized constructor for BasicLife.
| x | The x-coordinate of the cell. |
| y | The y-coordinate of the cell. |
| value | The value of the cell. |
|
static |
|
virtual |
Gets the value of the BasicLife cell.
Implements DiscreteAutomaton.
|
virtual |
Gets the x-coordinate of the BasicLife cell.
Implements DiscreteAutomaton.
|
virtual |
Gets the y-coordinate of the BasicLife cell.
Implements DiscreteAutomaton.
|
private |
|
private |
|
private |