File: Games\Plateau\Game.js

GamesByEmail
Class PlateauPieces

Array
  
 
 
GamesByEmail.Pieces
 
 
GamesByEmail.PlateauPieces

All Implemented Interfaces:

Class


GamesByEmail.PlateauPieces

extends Pieces

Constructor Summary
GamesByEmail.PlateauPieces(/*Game*/ game)
Creates a piece collection.

Field Summary

Fields inherited from GamesByEmail.Pieces
game

Fields inherited from Array
length

Method Summary
StringBuilderappendHtml(/*StringBuilder*/ htmlBuilder, /*Point*/ boardSize)
Adds the necessary HTML to display the pieces collection, wrapped in a container element for positioning.
NumbercountColor(/*Number*/ color)
Gets the number of pieces of a color.
 dispose()
 findWithContinuousColorStack(color, num)
 reset()

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

PlateauPieces

GamesByEmail.PlateauPieces(/*Game*/ game)

Creates a piece collection.

Parameters:
game - 
The parent game object.

Method Detail

appendHtml

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
Parameters:
htmlBuilder - 
The HTML builder to append to.
boardSize - 
The size of the board on which the pieces will be overlayed.
Returns:
The html builder after appending.

countColor

Number countColor(/*Number*/ color)

Gets the number of pieces of a color.

Overrides:
countColor in class Pieces
Parameters:
color - 
The color to look for.
Returns:
The number of pieces of the color.

dispose

dispose()
Overrides:
dispose in class Pieces

findWithContinuousColorStack

findWithContinuousColorStack(color,
                             num)
Parameters:
color - 

num - 


reset

reset()