Games\Empires\Game.js
GamesByEmail
Object
All Implemented Interfaces:
GamesByEmail.EmpiresLog
implementsFoundation.Class
,Foundation.Elemental
Constructor Summary |
//SCOTT - no longer extending GamesByEmail.Game, instead implementing
//Foundation.Elemental and declaring the few needed functions
|
Field Summary |
Fields inherited from Foundation.Elemental |
$Foundation_$registry_index |
Method Summary | |
|
|
|
//SCOTT - created debug function and replaced all instances
//of this.game.debug with this.debug
|
|
|
|
//returns an object containing only those game class members which are
//stored in EmpiresGame.setString(). Used by the log to compare previous
//turns data to current turn data.
|
|
// iOffset: Offset from current log entry
|
|
|
|
|
|
|
|
|
|
|
|
//concern is that this is called before gameState has been set.
|
|
|
|
//Meant to be used to apply previous log entry board
//state to class for sake of log
|
|
|
|
|
|
|
|
|
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 |
GamesByEmail.EmpiresLog()
//SCOTT - no longer extending GamesByEmail.Game, instead implementing //Foundation.Elemental and declaring the few needed functions
Method Detail |
assignLogMouseHandlersToGame()
debug()
//SCOTT - created debug function and replaced all instances //of this.game.debug with this.debug
dispose()
dispose
in class Class
getGameDataForMove()
//returns an object containing only those game class members which are //stored in EmpiresGame.setString(). Used by the log to compare previous //turns data to current turn data.
getLogButton()
// iOffset: Offset from current log entry
getNextLogButton()
getPrevLogButton()
mouseDown(screenPoint)
screenPoint -
playEmpire4Log()
playEmpireModCards4Log()
processLogMove()
//concern is that this is called before gameState has been set.
resumeEmpireExpansion4Log()
setStateString4Log()
//Meant to be used to apply previous log entry board //state to class for sake of log
showCompassPrompt4Log(sMessage)
sMessage -
showItsYourTurnDialog4Log()
showMonumentLogEntry()
updateBoard()