Godot Nature of Code
1.2.0
Nature of Code implemented in Godot Engine
|
Boolean cell. More...
Public Member Functions | |
override bool | GetAliveValue () |
Get alive cell value. More... | |
override bool | GetDeadValue () |
Get dead cell value. More... | |
![]() | |
virtual bool | IsAlive () |
Check if cell is alive (based on State). More... | |
virtual bool | WasAlive () |
Check if cell was alive (based on PreviousState). More... | |
virtual T | RandomizeState () |
Return a randomized state. More... | |
Additional Inherited Members | |
![]() | |
virtual ? Color | GetStateColor () |
Get state color. Returns null if cell is discarded. More... | |
![]() | |
T | PreviousState [get, set] |
Previous state More... | |
T | State [get, set] |
Current state More... | |
Vector2 | Size [get, set] |
Cell size More... | |
Color | CellColor [get, set] |
Cell color More... | |
bool | HighlightTransitions [get, set] |
Highlight when a cell is transitioning from life to death More... | |
Boolean cell.
Definition at line 6 of file GameOfLife.cs.
|
inlinevirtual |
Get alive cell value.
Implements Automata.Cell< bool >.
Definition at line 8 of file GameOfLife.cs.
|
inlinevirtual |
Get dead cell value.
Implements Automata.Cell< bool >.
Definition at line 13 of file GameOfLife.cs.