File: Games\CaptureTheFlag\Game.js

GamesByEmail
Class CaptureTheFlagPiece

Object
  
 
 
GamesByEmail.Piece
 
 
GamesByEmail.CaptureTheFlagPiece

All Implemented Interfaces:

Class


GamesByEmail.CaptureTheFlagPiece

extends Piece

Constructor Summary
GamesByEmail.CaptureTheFlagPiece(/*Pieces*/ pieces, /*Number*/ index, /*Number*/ value, /*Number*/ valueIndex, /*Boolean*/ hidden)
Creates a piece.

Field Summary

Fields inherited from GamesByEmail.Piece
boardPoint, hidden, index, pieces, valueIndex

Method Summary
 dispose()
RectanglegetClipRect()
Gets the clipping rectangle for this piece based on its color value. #returns The clipping rectangle.
 setClipVisibilityOffset()
 updateClipVisibilityOffset()

Methods inherited from GamesByEmail.Piece
appendHtml, center, create, elementId, event, getBoardValue, getElement, getImageSrc, getScreenRect, isColor, isOurs, move, occupiesBoardPoint, remove, reset, setBoardValue, setColor, setHidden, setValue, setValueAndColor, setVisibility, snap

Methods inherited from Foundation.Class
getTypePath, isInstanceOf

Constructor Detail

CaptureTheFlagPiece

GamesByEmail.CaptureTheFlagPiece(/*Pieces*/ pieces,
                                 /*Number*/ index,
                                 /*Number*/ value,
                                 /*Number*/ valueIndex,
                                 /*Boolean*/ hidden)

Creates a piece.

Parameters:
pieces - 
The parent pieces object.
index - 
The position of this piece in the parent pieces object.
value - 
The value of this piece.
valueIndex - 
The position of this piece's value in the result of the pieces getValue call. Set to -1 to not include in getValue.
hidden - 
Whether the piece is visible to the current player or not.

Method Detail

dispose

dispose()
Overrides:
dispose in class Piece

getClipRect

Rectangle getClipRect()

Gets the clipping rectangle for this piece based on its color value. #returns The clipping rectangle.

Overrides:
getClipRect in class Piece

setClipVisibilityOffset

setClipVisibilityOffset()

updateClipVisibilityOffset

updateClipVisibilityOffset()