|
CellViz
1.0
|
Represents a type of cellular automaton called SmithLife. More...
#include <cells.h>
Public Member Functions | |
| SmithLife (int x, int y, double value) | |
| Parameterized constructor for SmithLife. More... | |
| ~SmithLife () | |
| Destructor for SmithLife. More... | |
| int | get_x () |
| Gets the x-coordinate of the SmithLife cell. More... | |
| int | get_y () |
| Gets the y-coordinate of the SmithLife cell. More... | |
| double | get_value () |
| Gets the value of the SmithLife cell. More... | |
| void | set_value (double value) |
| Sets the value of the SmithLife 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 SmithLife 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 SmithLife.
| SmithLife::SmithLife | ( | int | x, |
| int | y, | ||
| double | value | ||
| ) |
Parameterized constructor for SmithLife.
| x | The x-coordinate of the cell. |
| y | The y-coordinate of the cell. |
| value | The value of the cell. |
| SmithLife::~SmithLife | ( | ) |
Destructor for SmithLife.
|
static |
|
virtual |
Gets the value of the SmithLife cell.
Implements DiscreteAutomaton.
|
virtual |
Gets the x-coordinate of the SmithLife cell.
Implements DiscreteAutomaton.
|
virtual |
Gets the y-coordinate of the SmithLife cell.
Implements DiscreteAutomaton.
| void SmithLife::set_value | ( | double | value | ) |
Sets the value of the SmithLife cell.
| value | The new value. |
|
private |
|
private |
|
private |