File: Games\GameOfLife\GamesByEmail.GameOfLifeGame.js

GamesByEmail
Class GameOfLifeGame

Object
  
 
 
GamesByEmail.GameOfLifeGame

All Implemented Interfaces:

Class, Elemental, Resourceful


GamesByEmail.GameOfLifeGame

implements Foundation.Class, Foundation.Elemental, Foundation.Resourceful

Nested Class Summary
static ClassGameOfLifeGame.Cell

Constructor Summary
GamesByEmail.GameOfLifeGame(resourcePack)

Enum Summary
static  ADJACENT_INDECIES

Field Summary
static  resourcePack

Fields inherited from Foundation.Elemental
$Foundation_$registry_index

Method Summary
 clear()
 createCellAtXY(x, y, dead)
 createCellAtXYIndex(x, y, adjacentIndex, dead)
 debug()
 dispose()
 exportToArray(offset)
 findCellAtXY(x, y, startIndex)
 findCellAtXYIndex(x, y, adjacentIndex, startIndex)
 findCellIndexAtXY(x, y, startIndex)
 getCellHtml(cell)
 getColorFromAge(age)
 getContainer()
 getHtml()
 getInnerHtml()
 importFromArray(state, offset)
 onClick(event)
 removeAllCells()
 reset()
 start()
 stop()
 tick()
 toggle()
 updateCellElement(element, cell)
 updateContainer()
static  writeToPage(resourcePack)

Methods inherited from Foundation.Class
getTypePath, isInstanceOf

Methods inherited from Foundation.Elemental
attachEvent, detachEvent, elementId, event, getById, getElement, getElementValue, getElements, getFirst, getNext, parseElementId, processHtml, processHtml

Methods inherited from Foundation.Resourceful
resource, resource, resourceUrl, resourceUrl

Constructor Detail

GameOfLifeGame

GamesByEmail.GameOfLifeGame(resourcePack)
Parameters:
resourcePack - 

Enum Detail

ADJACENT_INDECIES

static ADJACENT_INDECIES
Values:
x - 

y - 

x - 

y - 

x - 

y - 

x - 

y - 

x - 

y - 

x - 

y - 

x - 

y - 

x - 

y - 

Field Detail

resourcePack

static resourcePack

Method Detail

clear

clear()

createCellAtXY

createCellAtXY(x,
               y,
               dead)
Parameters:
x - 

y - 

dead - 


createCellAtXYIndex

createCellAtXYIndex(x,
                    y,
                    adjacentIndex,
                    dead)
Parameters:
x - 

y - 

adjacentIndex - 

dead - 


debug

debug()

dispose

dispose()
Overrides:
dispose in class Class

exportToArray

exportToArray(offset)
Parameters:
offset - 


findCellAtXY

findCellAtXY(x,
             y,
             startIndex)
Parameters:
x - 

y - 

startIndex - 


findCellAtXYIndex

findCellAtXYIndex(x,
                  y,
                  adjacentIndex,
                  startIndex)
Parameters:
x - 

y - 

adjacentIndex - 

startIndex - 


findCellIndexAtXY

findCellIndexAtXY(x,
                  y,
                  startIndex)
Parameters:
x - 

y - 

startIndex - 


getCellHtml

getCellHtml(cell)
Parameters:
cell - 


getColorFromAge

getColorFromAge(age)
Parameters:
age - 


getContainer

getContainer()

getHtml

getHtml()

getInnerHtml

getInnerHtml()

importFromArray

importFromArray(state,
                offset)
Parameters:
state - 

offset - 


onClick

onClick(event)
Parameters:
event - 


removeAllCells

removeAllCells()

reset

reset()

start

start()

stop

stop()

tick

tick()

toggle

toggle()

updateCellElement

updateCellElement(element,
                  cell)
Parameters:
element - 

cell - 


updateContainer

updateContainer()

writeToPage

static writeToPage(resourcePack)
Parameters:
resourcePack -