File: Games\Empires\Game.js

GamesByEmail
Class EmpiresMonumentDialog

Object
  
 
 
GamesByEmail.EmpiresMonumentDialog

All Implemented Interfaces:

Class, Elemental


GamesByEmail.EmpiresMonumentDialog

implements Foundation.Class, Foundation.Elemental

Constructor Summary
GamesByEmail.EmpiresMonumentDialog()
//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
 assignMonumentMouseHandlersToGame()
//The game class has 3 methods in it which just call methods in this class //for mouseMove etc. Use this to delegate mouse handling to the cardWizard class.
 buildMonuments()
 debug()
//SCOTT - created debug function and replaced all instances //of this.game.debug with this.debug
 dispose()
 endBuildMonumentPhase()
//REVISIT: MAKE THIS A WRAPPER THAT CALLS A GAME METHOD OF THE // SAME NAME. THIS LOGIC/STATE CHANGE SHOULD BE IN THE GAME CLASS ITSELF.
 hasAvailableCapitals()
 hasMonuments()
 isSelectable()
// Stub. Specific isSelectable implementations are assigned here.
 isSelectableForMonument(territory)
 isSelectablePickAnyTerritory(territory)
 letUserPickTerritory()
 mouseDown(screenPoint)
 mouseMove()
//Borrowed from CardWiz -integrate into a portable mousehandler class later
 mouseOut(screenPoint)
 placeMonument(territoryID)
 placeMonumentInNextCapital()
 placeMonumentsAutomatically()
 show()
 showDoneButton()
//Borrowed from CardWizard. Integrate into a standalone MouseHandler class //if ever one is built.
 showMonumentSelectorDialog()
 showUserBuiltMonumentsDialog()
 userSelectedPlaceMonument()

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

EmpiresMonumentDialog

GamesByEmail.EmpiresMonumentDialog()

//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

assignMonumentMouseHandlersToGame

assignMonumentMouseHandlersToGame()

//The game class has 3 methods in it which just call methods in this class //for mouseMove etc. Use this to delegate mouse handling to the cardWizard class.


buildMonuments

buildMonuments()

debug

debug()

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


dispose

dispose()
Overrides:
dispose in class Class

endBuildMonumentPhase

endBuildMonumentPhase()

//REVISIT: MAKE THIS A WRAPPER THAT CALLS A GAME METHOD OF THE // SAME NAME. THIS LOGIC/STATE CHANGE SHOULD BE IN THE GAME CLASS ITSELF.


hasAvailableCapitals

hasAvailableCapitals()

hasMonuments

hasMonuments()

isSelectable

isSelectable()

// Stub. Specific isSelectable implementations are assigned here.


isSelectableForMonument

isSelectableForMonument(territory)
Parameters:
territory - 


isSelectablePickAnyTerritory

isSelectablePickAnyTerritory(territory)
Parameters:
territory - 


letUserPickTerritory

letUserPickTerritory()

mouseDown

mouseDown(screenPoint)
Parameters:
screenPoint - 


mouseMove

mouseMove()

//Borrowed from CardWiz -integrate into a portable mousehandler class later


mouseOut

mouseOut(screenPoint)
Parameters:
screenPoint - 


placeMonument

placeMonument(territoryID)
Parameters:
territoryID - 


placeMonumentInNextCapital

placeMonumentInNextCapital()

placeMonumentsAutomatically

placeMonumentsAutomatically()

show

show()

showDoneButton

showDoneButton()

//Borrowed from CardWizard. Integrate into a standalone MouseHandler class //if ever one is built.


showMonumentSelectorDialog

showMonumentSelectorDialog()

showUserBuiltMonumentsDialog

showUserBuiltMonumentsDialog()

userSelectedPlaceMonument

userSelectedPlaceMonument()