Godot Nature of Code  1.2.0
Nature of Code implemented in Godot Engine
Public Member Functions | List of all members
Automata.BoolCell Class Reference

Boolean cell. More...

Inheritance diagram for Automata.BoolCell:
Automata.Cell< bool >

Public Member Functions

override bool GetAliveValue ()
 Get alive cell value. More...
 
override bool GetDeadValue ()
 Get dead cell value. More...
 
- Public Member Functions inherited from Automata.Cell< bool >
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

- Protected Member Functions inherited from Automata.Cell< bool >
virtual ? Color GetStateColor ()
 Get state color. Returns null if cell is discarded. More...
 
- Properties inherited from Automata.Cell< bool >
PreviousState [get, set]
 Previous state More...
 
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...
 

Detailed Description

Boolean cell.

Definition at line 6 of file GameOfLife.cs.

Member Function Documentation

◆ GetAliveValue()

override bool Automata.BoolCell.GetAliveValue ( )
inlinevirtual

Get alive cell value.

Returns
Alive cell value

Implements Automata.Cell< bool >.

Definition at line 8 of file GameOfLife.cs.

9  {
10  return true;
11  }

◆ GetDeadValue()

override bool Automata.BoolCell.GetDeadValue ( )
inlinevirtual

Get dead cell value.

Returns
Dead cell value

Implements Automata.Cell< bool >.

Definition at line 13 of file GameOfLife.cs.

14  {
15  return false;
16  }

The documentation for this class was generated from the following file: