Games\Gambit\Game.js
GamesByEmail
Object
GamesByEmail.Territory
All Implemented Interfaces:
GamesByEmail.GambitTerritory
extendsTerritory
Constructor Summary |
Creates a territory.
|
Field Summary |
Fields inherited from GamesByEmail.Territory |
adjacent , adjacentIndices , color , game , index , indexString , polygon , territories , title |
Method Summary | |
|
|
|
Override to add HTML that shows above the territory.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Checks to see if a point is inside the territory's polygon.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Methods inherited from GamesByEmail.Territory |
appendHtml , event , hideHilite , isColor , isOurs , setBlink , showHilite , showHiliteIfOurs |
Methods inherited from Foundation.Class |
getTypePath , isInstanceOf |
Constructor Detail |
GamesByEmail.GambitTerritory(/*Territories
*/ territories,
/*Number
*/ index,
/*String
*/ indexString,
/*Game
*/ game,
/*Object
*/ territory)
Creates a territory.
Parameters:territories -The parent territories collection.
index -The position of this piece in the parent pieces object.
indexString -The zero-padded index string of the position of this piece in the parent pieces object.
game -The game this territory is in.
territory -The data for this territory to inherit.
Method Detail |
addArmy(number,
synch)
number -
synch -
StringBuilder
appendOverlayHtml(/*StringBuilder
*/ htmlBuilder)
Override to add HTML that shows above the territory.
Overrides:appendOverlayHtml
in class Territory
htmlBuilder -The builder to append the HTML for the territory.
armyCount(color)
color -
bestAttackerIndex()
bestFortifierIndex()
canAttack(target,
visible)
target -
visible -
canBeAttacked(attacker,
visible)
attacker -
visible -
canBeFortified()
canFortify()
clearCachedElements()
Boolean
containsPoint(/*Point
*/ point)
Checks to see if a point is inside the territory's polygon.
Overrides:containsPoint
in class Territory
point -The point to check.
dispose()
getNumAdjacent()
getValue(value)
value -
hideDeployHilite()
isBlind()
isDark()
isSpy()
mustAirStrike(target)
target -
setArmy(color,
number,
synch)
color -
number -
synch -
setArmy(color,
number,
synch)
color -
number -
synch -
setValue(value)
value -
showDeployHilite()
showHiliteIfAttackableFortafyable()
synchDark()