File: Games\Phalanx\Game.js

GamesByEmail
Class PhalanxPieces

Array
  
 
 
GamesByEmail.Pieces
 
 
GamesByEmail.PhalanxPieces

All Implemented Interfaces:

Class


GamesByEmail.PhalanxPieces

extends Pieces

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

Field Summary

Fields inherited from GamesByEmail.Pieces
game

Fields inherited from Array
length

Method Summary
 dispose()
 getPhalanxedList(color)
 getPhalanxedValue()
StringgetValue()
Gets the combined value of all the pieces in the collection, extra piece object in the collection for adding new pieces to the board in games like Reversi and Go.
 removePhalanxed()

Methods inherited from GamesByEmail.Pieces
appendHiliteHtml, appendHtml, appendInnerHtml, cancelFlashes, clear, countColor, findAtPoint, flash, getNewPiece, setValue

Methods inherited from Array
indexOf

Methods inherited from Foundation.Class
getTypePath, isInstanceOf

Constructor Detail

PhalanxPieces

GamesByEmail.PhalanxPieces(/*Game*/ game)

Creates a piece collection.

Parameters:
game - 
The parent game object.

Method Detail

dispose

dispose()
Overrides:
dispose in class Pieces

getPhalanxedList

getPhalanxedList(color)
Parameters:
color - 


getPhalanxedValue

getPhalanxedValue()

getValue

String getValue()

Gets the combined value of all the pieces in the collection, extra piece object in the collection for adding new pieces to the board in games like Reversi and Go.

Overrides:
getValue in class Pieces
Returns:
The combined value, typically for setting game.info.board.

removePhalanxed

removePhalanxed()