net.sourceforge.simplegamenet.chess
Class ChessPiece
java.lang.Object
net.sourceforge.simplegamenet.chess.ChessPiece
- All Implemented Interfaces:
- ChessGridSize, Cloneable, Serializable
- Direct Known Subclasses:
- ChessBishop, ChessKing, ChessKnight, ChessPawn, ChessQueen, ChessRook
- public abstract class ChessPiece
- extends Object
- implements ChessGridSize, Serializable, Cloneable
- See Also:
- Serialized Form
Constructor Summary |
protected |
ChessPiece(int participantOwnerIndex,
int x,
int y)
|
participantOwnerIndex
protected int participantOwnerIndex
x
protected int x
y
protected int y
ChessPiece
protected ChessPiece(int participantOwnerIndex,
int x,
int y)
isMoveAllowed
public abstract boolean isMoveAllowed(ChessPiece[] pieceGrid,
int destinationX,
int destinationY)
doMove
public void doMove(ChessPiece[] pieceGrid,
int destinationX,
int destinationY)
getParticipantsOwnerIndex
public int getParticipantsOwnerIndex()
isInPlayField
public boolean isInPlayField()
getX
public int getX()
getY
public int getY()
clone
public Object clone()
getPieceType
public abstract int getPieceType()
getPieceValue
public abstract int getPieceValue()
Copyright © 2003-2004 The 3 Belgians. All Rights Reserved.