Generic base cell class.  
 More...
Inherits Node2D.
Generic base cell class. 
Definition at line 36 of file CellularAutomata2D.cs.
◆ GetAliveValue()
◆ GetDeadValue()
◆ GetStateColor()
Get state color. Returns null if cell is discarded. 
- Returns
- State color
Definition at line 124 of file CellularAutomata2D.cs.
  131                 if (!wasAlive && isAlive)
 
  136                 else if (wasAlive && !isAlive)
 
Color CellColor
Cell color
virtual bool WasAlive()
Check if cell was alive (based on PreviousState).
virtual bool IsAlive()
Check if cell is alive (based on State).
bool HighlightTransitions
Highlight when a cell is transitioning from life to death
 
 
 
◆ IsAlive()
Check if cell is alive (based on State). 
- Returns
- Live state
Definition at line 70 of file CellularAutomata2D.cs.
abstract T GetAliveValue()
Get alive cell value.
 
 
 
◆ RandomizeState()
Return a randomized state. 
- Returns
- Randomized state
Definition at line 88 of file CellularAutomata2D.cs.
abstract T GetDeadValue()
Get dead cell value.
static float Randf()
Return a random floating number between 0 and 1.
 
 
 
◆ WasAlive()
Check if cell was alive (based on PreviousState). 
- Returns
- Previous live state
Definition at line 79 of file CellularAutomata2D.cs.
T PreviousState
Previous state
 
 
 
◆ CellColor
◆ HighlightTransitions
◆ PreviousState
◆ Size
◆ State
The documentation for this class was generated from the following file: