nngn
Loading...
Searching...
No Matches
conway.lua File Reference

Functions

local function next_generation (self)
 
function gen_adjacent (self)
 
function alive (board, size, r, x, y)
 
function gen_actions (self, adj)
 
function gen (self, new, kill)
 
function kill (kill)
 
function conway new ()
 
function conway start () self.started
 
function conway restart() self function conway init (cell_size, cell_renderer, pos_off)
 
function conway reset ()
 
function conway update (dt_ms)
 

Variables

local entity< const > = require "nngn.lib.entity"
 
local board_init< const > =
 
local conway< const > = {}
 
conway __index = conway
 

Function Documentation

◆ alive()

function alive ( board ,
size ,
r ,
x ,
y  )
Here is the caller graph for this function:

◆ gen()

function gen ( self ,
new ,
kill  )
Here is the caller graph for this function:

◆ gen_actions()

function gen_actions ( self ,
adj  )

◆ gen_adjacent()

function gen_adjacent ( self )

◆ init()

function conway restart() self function conway init ( cell_size ,
cell_renderer ,
pos_off  )

◆ kill()

function kill ( kill )

◆ new()

function conway new ( )

◆ next_generation()

local function next_generation ( self )

◆ reset()

function conway reset ( )

◆ start()

function conway start ( )

◆ update()

function conway update ( dt_ms )

Variable Documentation

◆ __index

conway __index = conway

◆ board_init< const >

local board_init< const > =

◆ conway< const >

local conway< const > = {}

◆ entity< const >

local entity< const > = require "nngn.lib.entity"