Games\Empires\Game.js
GamesByEmail
Object
All Implemented Interfaces:
GamesByEmail.EmpiresMonumentDialog
implementsFoundation.Class
,Foundation.Elemental
Constructor Summary |
//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 | |
|
//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.
|
|
|
|
//SCOTT - created debug function and replaced all instances
//of this.game.debug with this.debug
|
|
|
|
//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.
|
|
|
|
|
|
// Stub. Specific isSelectable implementations are assigned here.
|
|
|
|
|
|
|
|
|
|
//Borrowed from CardWiz -integrate into a portable mousehandler class later
|
|
|
|
|
|
|
|
|
|
|
|
//Borrowed from CardWizard. Integrate into a standalone MouseHandler class
//if ever one is built.
|
|
|
|
|
|
|
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.EmpiresMonumentDialog()
//SCOTT - no longer extending GamesByEmail.Game, instead implementing //Foundation.Elemental and declaring the few needed functions
Field Detail |
getButtonHtml
//SCOTT - Borrow getButtonHtml from the game class //Still works because this class implements Foundation.Elemental
Method Detail |
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()
dispose
in class Class
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)
territory -
isSelectablePickAnyTerritory(territory)
territory -
letUserPickTerritory()
mouseDown(screenPoint)
screenPoint -
mouseMove()
//Borrowed from CardWiz -integrate into a portable mousehandler class later
mouseOut(screenPoint)
screenPoint -
placeMonument(territoryID)
territoryID -
placeMonumentInNextCapital()
placeMonumentsAutomatically()
show()
showDoneButton()
//Borrowed from CardWizard. Integrate into a standalone MouseHandler class //if ever one is built.
showMonumentSelectorDialog()
showUserBuiltMonumentsDialog()
userSelectedPlaceMonument()