File: Games\GamesByEmail.GameLoader.js

GamesByEmail
Class GameLoader

Object
  
 
 
Foundation.ClientLoader
 
 
GamesByEmail.GameLoader

All Implemented Interfaces:

Class, Elemental, Resourceful


GamesByEmail.GameLoader

extends ClientLoader

Constructor Summary
GamesByEmail.GameLoader()

Field Summary
static ObjectresourcePack
Override to add URLs for script list requests.

Fields inherited from Foundation.ClientLoader
debug, parameterStore

Fields inherited from Foundation.Elemental
$Foundation_$registry_index

Method Summary
 addGamePreviewToPage()
static  addGamePreviewToPage(elementId, gameType, numPlayers, properties)
 addGamesToPage()
static  addGamesToPage(elementIdList, gameIdList)
static  changeDomain(domain, extension)
 dispose()
static  getScriptSrc(id)
static  makeArray(idList)
voidreceiveScriptList(/*Array*/ scripts)
Called when the loader receives the script list from the server.
static  writeGamePreviewToPage(gameType, numPlayers, properties, message)
static  writeGamesToPage(gameIdList)
static  writePoliticsJudgeToPage(initalSetup)

Methods inherited from Foundation.ClientLoader
abort, readyToProcess, requestScriptList

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

GameLoader

GamesByEmail.GameLoader()

Field Detail

resourcePack

static Object resourcePack

Override to add URLs for script list requests.

Overrides:
resourcePack in class ClientLoader

Method Detail

addGamePreviewToPage

addGamePreviewToPage()

addGamePreviewToPage

static addGamePreviewToPage(elementId,
                            gameType,
                            numPlayers,
                            properties)
Parameters:
elementId - 

gameType - 

numPlayers - 

properties - 


addGamesToPage

addGamesToPage()

addGamesToPage

static addGamesToPage(elementIdList,
                      gameIdList)
Parameters:
elementIdList - 

gameIdList - 


changeDomain

static changeDomain(domain,
                    extension)
Parameters:
domain - 

extension - 


dispose

dispose()
Overrides:
dispose in class ClientLoader

getScriptSrc

static getScriptSrc(id)
Parameters:
id - 


makeArray

static makeArray(idList)
Parameters:
idList - 


receiveScriptList

void receiveScriptList(/*Array*/ scripts)

Called when the loader receives the script list from the server.

Overrides:
receiveScriptList in class ClientLoader
Parameters:
scripts - 
An array of conditions and urls. The script list is in the form of [test:"ConditionExpression", src:"ScriptUrl.js" | execute:"Expression",...]. For each script, test is evaled, and if the ConditionExpression is true, either the execute will get evaled or the script at src URL will be requested and loaded.

writeGamePreviewToPage

static writeGamePreviewToPage(gameType,
                              numPlayers,
                              properties,
                              message)
Parameters:
gameType - 

numPlayers - 

properties - 

message - 


writeGamesToPage

static writeGamesToPage(gameIdList)
Parameters:
gameIdList - 


writePoliticsJudgeToPage

static writePoliticsJudgeToPage(initalSetup)
Parameters:
initalSetup -