Godot Nature of Code
1.2.0
Nature of Code implemented in Godot Engine
|
Historical Game of Life. More...
Additional Inherited Members | |
![]() | |
CellularAutomata2D () | |
Create a default cellular automata with a cell scale of 20. More... | |
CellularAutomata2D (int scale) | |
Create a default cellular automata with a custom cell scale. More... | |
virtual void | RandomizeGrid () |
Randomize grid. More... | |
![]() | |
virtual Vector2 | GetAutomataBounds () |
Get automata bounds. More... | |
virtual void | InitializeGrid () |
Initialize grid. More... | |
virtual void | InitializeCell (TCell cell, int i, int j) |
Initialize cell. More... | |
virtual void | ReviveCellAtScreenPos (Vector2 pos) |
Revive cell at screen position. More... | |
virtual int | GetAliveNeighborsFromCell (int x, int y) |
Get alive neighbors from cell position. More... | |
virtual T | ApplyRules (int x, int y) |
Apply rules on cell and return next state. More... | |
virtual void | Generate () |
Create a new generation. More... | |
![]() | |
TCell[] | _grid |
Grid nodes More... | |
int | _scale |
Cell scale More... | |
int | _rows |
Row count More... | |
int | _cols |
Cols count More... | |
int | _generation |
Current generation More... | |
Node2D | _gridContainer |
Grid container More... | |
![]() | |
float | WaitTime [get, set] |
Wait time More... | |
Color | CellColor [get, set] |
Cell color More... | |
bool | Paused [get, set] |
Paused More... | |
bool | HighlightTransitions [get, set] |
Highlight when a cell is transitioning from life to death More... | |
bool | CenterAlignedGrid [get, set] |
Align grid to the center More... | |
bool | HideGUI [get, set] |
Hide GUI More... | |
TouchBehaviorEnum | TouchBehavior [get, set] |
Touch behavior More... | |
WrapBehaviorEnum | WrapBehavior [get, set] |
Wrap behavior More... | |
Historical Game of Life.
Definition at line 37 of file HistoricalGameOfLife.cs.