File: Games\Empires\Game.js

GamesByEmail
Class EmpiresLog

Object
  
 
 
GamesByEmail.EmpiresLog

All Implemented Interfaces:

Class, Elemental


GamesByEmail.EmpiresLog

implements Foundation.Class, Foundation.Elemental

Constructor Summary
GamesByEmail.EmpiresLog()
//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
 assignLogMouseHandlersToGame()
 debug()
//SCOTT - created debug function and replaced all instances //of this.game.debug with this.debug
 dispose()
 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)
 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)
 showItsYourTurnDialog4Log()
 showMonumentLogEntry()
 updateBoard()

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

EmpiresLog

GamesByEmail.EmpiresLog()

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

Method Detail

assignLogMouseHandlersToGame

assignLogMouseHandlersToGame()

debug

debug()

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


dispose

dispose()
Overrides:
dispose in class Class

getGameDataForMove

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

getLogButton()

// iOffset: Offset from current log entry


getNextLogButton

getNextLogButton()

getPrevLogButton

getPrevLogButton()

mouseDown

mouseDown(screenPoint)
Parameters:
screenPoint - 


playEmpire4Log

playEmpire4Log()

playEmpireModCards4Log

playEmpireModCards4Log()

processLogMove

processLogMove()

//concern is that this is called before gameState has been set.


resumeEmpireExpansion4Log

resumeEmpireExpansion4Log()

setStateString4Log

setStateString4Log()

//Meant to be used to apply previous log entry board //state to class for sake of log


showCompassPrompt4Log

showCompassPrompt4Log(sMessage)
Parameters:
sMessage - 


showItsYourTurnDialog4Log

showItsYourTurnDialog4Log()

showMonumentLogEntry

showMonumentLogEntry()

updateBoard

updateBoard()