Games\Plateau\Game.js
GamesByEmail
Array
GamesByEmail.Pieces
All Implemented Interfaces:
GamesByEmail.PlateauPieces
extendsPieces
Constructor Summary |
Creates a piece collection.
|
Field Summary |
Fields inherited from GamesByEmail.Pieces |
game |
Fields inherited from Array |
length |
Method Summary | |
|
Adds the necessary HTML to display the pieces collection, wrapped in a container element for positioning.
|
|
Gets the number of pieces of a color.
|
|
|
|
|
|
|
Methods inherited from GamesByEmail.Pieces |
appendHiliteHtml , appendInnerHtml , cancelFlashes , clear , findAtPoint , flash , getNewPiece , getValue , setValue |
Methods inherited from Array |
indexOf |
Methods inherited from Foundation.Class |
getTypePath , isInstanceOf |
Constructor Detail |
GamesByEmail.PlateauPieces(/*Game
*/ game)
Creates a piece collection.
Parameters:game -The parent game object.
Method Detail |
StringBuilder
appendHtml(/*StringBuilder
*/ htmlBuilder,
/*Point
*/ boardSize)
Adds the necessary HTML to display the pieces collection, wrapped in a container element for positioning.
Overrides:appendHtml
in class Pieces
htmlBuilder -The HTML builder to append to.
boardSize -The size of the board on which the pieces will be overlayed.
Number
countColor(/*Number
*/ color)
Gets the number of pieces of a color.
Overrides:countColor
in class Pieces
color -The color to look for.
dispose()
findWithContinuousColorStack(color,
num)
color -
num -
reset()