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

Functions

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

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

Function Documentation

◆ alive()

function alive ( board  ,
size  ,
r  ,
,
 
)
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()

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 >

board_init< const > =

◆ conway< const >

conway< const > = {}

◆ entity< const >

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