Games\GamesByEmail.js
GamesByEmail
Array
All Implemented Interfaces:
GamesByEmail.Territories
extendsArray
implementsFoundation.Class
A collection of territories in a game, like Gambit. May be used directly or extended. Implemented as an Array
.
See Also:
Constructor Summary |
Creates a territory collection.
|
Field Summary | |
| game
The parent game object.
|
Fields inherited from Array |
length |
Method Summary | |
|
Appends the HTML necessary for the territoies. By default adds a container element, the calls the
GamesByEmail.Territory.appendHtml for each territory, and then calls the appendOverlayHtml method of the collection. |
|
Override to add HTML that shows above all the territories.
|
|
Clears all mouse events of the collection.
|
|
|
|
Searches the collection to find the first territory containing the point in its polygon.
|
|
Hides the highlight of every territory in the collection.
|
Methods inherited from Array |
indexOf |
Methods inherited from Foundation.Class |
getTypePath , isInstanceOf |
Constructor Detail |
GamesByEmail.Territories(/*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.
Field Detail |
Game
game
The parent game object.
Method Detail |
StringBuilder
appendHtml(/*StringBuilder
*/ htmlBuilder)
Appends the HTML necessary for the territoies. By default adds a container element, the calls the GamesByEmail.Territory.appendHtml
for each territory, and then calls the appendOverlayHtml
method of the collection.
htmlBuilder -The builder to append the HTML for the territories.
StringBuilder
appendOverlayHtml(/*StringBuilder
*/ htmlBuilder)
Override to add HTML that shows above all the territories.
Parameters:htmlBuilder -The builder to append the HTML for the territory.
void
clearMouseEvents()
Clears all mouse events of the collection.
See Also:
dispose()
dispose
in class Class
Territory
findAtPoint(/*Point
*/ point,
/*Number
*/ checkThisIndexFirst)
Searches the collection to find the first territory containing the point in its polygon.
Parameters:point -The point to check.
checkThisIndexFirst -(Optional) If provided, will check this index first, then check from start of collection.
null
.
void
hideHilites()
Hides the highlight of every territory in the collection.