NaiveCell

p5ex~ NaiveCell

(To be filled)

Constructor

new NaiveCell(neighborRange)

Source:
Parameters:
Name Type Default Description
neighborRange 1

Methods

getNeighborCell(relativeX, relativeY)

Returns the specified neighbor cell.
Source:
Parameters:
Name Type Description
relativeX number
relativeY number

setNeighborCell(relativeX, relativeY, cell)

Sets the provided cell as a neighbor of this cell.
Source:
Parameters:
Name Type Description
relativeX
relativeY
cell