File: Games\Gambit\Game.js

GamesByEmail
Class GambitTerritories

Array
  
 
 
GamesByEmail.Territories
 
 
GamesByEmail.GambitTerritories

All Implemented Interfaces:

Class


GamesByEmail.GambitTerritories

extends Territories

Constructor Summary
GamesByEmail.GambitTerritories(/*Game*/ game, /*Class*/ territoryClass, /*Array*/ territories)
Creates a territory collection.

Field Summary

Fields inherited from GamesByEmail.Territories
game

Fields inherited from Array
length

Method Summary
StringBuilderappendOverlayHtml(/*StringBuilder*/ htmlBuilder)
Override to add HTML that shows above all the territories.
 armyCount(color)
 canAttack()
 canFortify()
 clearCachedElements()
 count(color)
 dispose()
 getString(territories)
 getValue(value)
 setValue(value)
 synchDark()

Methods inherited from GamesByEmail.Territories
appendHtml, clearMouseEvents, findAtPoint, hideHilites

Methods inherited from Array
indexOf

Methods inherited from Foundation.Class
getTypePath, isInstanceOf

Constructor Detail

GambitTerritories

GamesByEmail.GambitTerritories(/*Game*/ game,
                               /*Class*/ territoryClass,
                               /*Array*/ territories)

Creates a territory collection.

Parameters:
game - 
The parent game object.
territoryClass - 
The class to use for individual territories.
territories - 
The data for the territories to inherit.

Method Detail

appendOverlayHtml

StringBuilder appendOverlayHtml(/*StringBuilder*/ htmlBuilder)

Override to add HTML that shows above all the territories.

Overrides:
appendOverlayHtml in class Territories
Parameters:
htmlBuilder - 
The builder to append the HTML for the territory.
Returns:
The string builder.

armyCount

armyCount(color)
Parameters:
color - 


canAttack

canAttack()

canFortify

canFortify()

clearCachedElements

clearCachedElements()

count

count(color)
Parameters:
color - 


dispose

dispose()
Overrides:
dispose in class Territories

getString

getString(territories)
Parameters:
territories - 


getValue

getValue(value)
Parameters:
value - 


setValue

setValue(value)
Parameters:
value - 


synchDark

synchDark()