| Package | com.godpaper.as3.business.managers |
| Class | public class ChessPiecesManagerDefault |
| Inheritance | ChessPiecesManagerDefault Object |
| Implements | com.godpaper.as3.core.IChessPieceManager |
| Subclasses | ChessPiecesManager_TicTacToe |
| Property | Defined By | ||
|---|---|---|---|
| eatOffs : Vector.<ChessPiece>
return the eaten chess pieces. | ChessPiecesManagerDefault | ||
| isChecking : Boolean
return isChecking value. | ChessPiecesManagerDefault | ||
| memento : ChessPiecesMemento | ChessPiecesManagerDefault | ||
| previousMementos : Array [read-only]
| ChessPiecesManagerDefault | ||
| Property | Defined By | ||
|---|---|---|---|
| chessBoardModel : ChessBoardModel | ChessPiecesManagerDefault | ||
| chessGaketsModel : ChessGasketsModel | ChessPiecesManagerDefault | ||
| chessPiecesModel : ChessPiecesModel | ChessPiecesManagerDefault | ||
| currentRemovedPieceIndexs : Vector.<int> [read-only] | ChessPiecesManagerDefault | ||
| currentRemovedPieces : Vector.<ChessPiece> | ChessPiecesManagerDefault | ||
| Method | Defined By | ||
|---|---|---|---|
Apply make move data and piece entity change behaviors,to be overrided. | ChessPiecesManagerDefault | ||
calculatePieceIndex(chessPiece:ChessPiece):int | ChessPiecesManagerDefault | ||
doMoveValidation(conductVO:ConductVO):Boolean | ChessPiecesManagerDefault | ||
indicateCheck(pieces:Vector.<ChessPiece>, marshal:BitBoard):Boolean | ChessPiecesManagerDefault | ||
indicateCheckmate(gamePosition:PositionVO):Boolean | ChessPiecesManagerDefault | ||
indicateGasketsCapture(legalCaptures:BitBoard):void | ChessPiecesManagerDefault | ||
indicateGasketsMove(legalMoves:BitBoard):void | ChessPiecesManagerDefault | ||
Make Move is a function inside a chess program to update the internal chess position
and its Board representation as well as associated
or dependent state variables and data by a move made on the internal board,
such as zobrist keys to index the transposition table. | ChessPiecesManagerDefault | ||
noneMove():int
Plugin to death,results to human or computer win.
return the game status code. | ChessPiecesManagerDefault | ||
unmakeMove(conductVO:ConductVO):void
Unmake Move is a function inside a chess program to update the internal chess position
and its Board representation as well as associated or dependent state variables
and data by a move unmade on the internal board. | ChessPiecesManagerDefault | ||
willNoneMove(gamePosition:PositionVO):Boolean | ChessPiecesManagerDefault | ||
| Method | Defined By | ||
|---|---|---|---|
blueSideHandler():void | ChessPiecesManagerDefault | ||
greenSideHandler():void | ChessPiecesManagerDefault | ||
redSideHandler():void | ChessPiecesManagerDefault | ||
updateTasksProcess():void | ChessPiecesManagerDefault | ||
| chessBoardModel | property |
protected var chessBoardModel:ChessBoardModel| chessGaketsModel | property |
protected var chessGaketsModel:ChessGasketsModel| chessPiecesModel | property |
protected var chessPiecesModel:ChessPiecesModel| currentRemovedPieceIndexs | property |
currentRemovedPieceIndexs:Vector.<int> [read-only] protected function get currentRemovedPieceIndexs():Vector.<int>| currentRemovedPieces | property |
protected var currentRemovedPieces:Vector.<ChessPiece>| eatOffs | property |
eatOffs:Vector.<ChessPiece>return the eaten chess pieces.
public function get eatOffs():Vector.<ChessPiece> public function set eatOffs(value:Vector.<ChessPiece>):void| isChecking | property |
isChecking:Booleanreturn isChecking value.
public function get isChecking():Boolean public function set isChecking(value:Boolean):void| memento | property |
memento:ChessPiecesMemento
public function get memento():ChessPiecesMemento public function set memento(value:ChessPiecesMemento):void| previousMementos | property |
previousMementos:Array [read-only]
public function get previousMementos():Array| applyMove | () | method |
public function applyMove(conductVO:ConductVO):voidApply make move data and piece entity change behaviors,to be overrided.
Parameters
conductVO:ConductVO |
| blueSideHandler | () | method |
protected function blueSideHandler():void| calculatePieceIndex | () | method |
public function calculatePieceIndex(chessPiece:ChessPiece):int
Parameters
chessPiece:ChessPiece |
int —
|
DefaultErrors
|
| doMoveValidation | () | method |
public function doMoveValidation(conductVO:ConductVO):Boolean
Parameters
conductVO:ConductVO — the conduct value object of moving chess piece.
|
Boolean — current chess piece's move validation result.
|
| greenSideHandler | () | method |
protected function greenSideHandler():void| indicateCheck | () | method |
public function indicateCheck(pieces:Vector.<ChessPiece>, marshal:BitBoard):Boolean
Parameters
pieces:Vector.<ChessPiece> — execute check mate's chess pieces.
| |
marshal:BitBoard — blues'/reds' marshal bitboard.
|
Boolean — the result of check pattern,if neccessary.
|
| indicateCheckmate | () | method |
public function indicateCheckmate(gamePosition:PositionVO):Boolean
Parameters
gamePosition:PositionVO — the current blue/red game position.
|
Boolean — whether or not blue/red check mated.
|
| indicateGasketsCapture | () | method |
public function indicateGasketsCapture(legalCaptures:BitBoard):void
Parameters
legalCaptures:BitBoard — current chess piece's legal moves.
|
See also
| indicateGasketsMove | () | method |
public function indicateGasketsMove(legalMoves:BitBoard):void
Parameters
legalMoves:BitBoard — current chess piece's legal moves.
|
See also
| makeMove | () | method |
public function makeMove(conductVO:ConductVO):voidMake Move is a function inside a chess program to update the internal chess position and its Board representation as well as associated or dependent state variables and data by a move made on the internal board, such as zobrist keys to index the transposition table. That usually happens inside the Search algorithm, where the move acts like an edge connecting two nodes of a search tree, a parent and a child node. Dependent on the design of the data structures and the used search algorithms there are different approaches with respect to randomly accessing aspects of nodes and restoring the position while unmaking the move.
Parameters
conductVO:ConductVO — the conduct value object of moving chess piece.
|
See also
| noneMove | () | method |
public function noneMove():intPlugin to death,results to human or computer win. return the game status code.
Returnsint |
| redSideHandler | () | method |
protected function redSideHandler():void| unmakeMove | () | method |
public function unmakeMove(conductVO:ConductVO):voidUnmake Move is a function inside a chess program to update the internal chess position and its Board representation as well as associated or dependent state variables and data by a move unmade on the internal board. In unmake move, reversible aspects of a position can be incrementally updated by the inverse or own inverse operation of Make Move. Irreversible aspects of a position, such as ep state, castling rights and the halfmove clock are either restored from a stack (LIFO), or simply kept in arrays indexed by current search or game ply. Alternatively, one may capacitate the move with all the necessary information to recover those irreversible aspects of a position as well.
Parameters
conductVO:ConductVO — the conduct value object of moving chess piece.
|
See also
| updateTasksProcess | () | method |
protected function updateTasksProcess():void| willNoneMove | () | method |
public function willNoneMove(gamePosition:PositionVO):Boolean
Parameters
gamePosition:PositionVO |
Boolean —
|