File: Games\Empires\Game.js

GamesByEmail
Class EmpiresScoreDialog

Object
  
 
 
GamesByEmail.EmpiresScoreDialog

All Implemented Interfaces:

Class, Elemental


GamesByEmail.EmpiresScoreDialog

implements Foundation.Class, Foundation.Elemental

Constructor Summary
GamesByEmail.EmpiresScoreDialog()
//SCOTT - no longer extending GamesByEmail.Game, instead implementing //Foundation.Elemental and declaring the few needed functions

Field Summary
 getButtonHtml
//SCOTT - Borrow getButtonHtml from the game class //Still works because this class implements Foundation.Elemental

Fields inherited from Foundation.Elemental
$Foundation_$registry_index

Method Summary
 debug()
//SCOTT - created debug function and replaced all instances //of this.game.debug with this.debug
 dispose()
 endTurn()
 getContinentsScore(scoreItems)
 getPointsForCitiesAndMonuments(scoreItems)
 getScoreHelperArray()
 getScoreHtml(html, scoreItems)
 getScoreItemForContinent(iContinent, scoreItemConstructor)
 show()

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

Constructor Detail

EmpiresScoreDialog

GamesByEmail.EmpiresScoreDialog()

//SCOTT - no longer extending GamesByEmail.Game, instead implementing //Foundation.Elemental and declaring the few needed functions

Field Detail

getButtonHtml

getButtonHtml

//SCOTT - Borrow getButtonHtml from the game class //Still works because this class implements Foundation.Elemental

Method Detail

debug

debug()

//SCOTT - created debug function and replaced all instances //of this.game.debug with this.debug


dispose

dispose()
Overrides:
dispose in class Class

endTurn

endTurn()

getContinentsScore

getContinentsScore(scoreItems)
Parameters:
scoreItems - 


getPointsForCitiesAndMonuments

getPointsForCitiesAndMonuments(scoreItems)
Parameters:
scoreItems - 


getScoreHelperArray

getScoreHelperArray()

getScoreHtml

getScoreHtml(html,
             scoreItems)
Parameters:
html - 

scoreItems - 


getScoreItemForContinent

getScoreItemForContinent(iContinent,
                         scoreItemConstructor)
Parameters:
iContinent - 

scoreItemConstructor - 


show

show()