net.sourceforge.simplegamenet.chess
Class ChessRook

java.lang.Object
  extended bynet.sourceforge.simplegamenet.chess.ChessPiece
      extended bynet.sourceforge.simplegamenet.chess.ChessRook
All Implemented Interfaces:
ChessGridSize, Cloneable, Serializable

public class ChessRook
extends ChessPiece

See Also:
Serialized Form

Field Summary
 
Fields inherited from class net.sourceforge.simplegamenet.chess.ChessPiece
participantOwnerIndex, x, y
 
Fields inherited from interface net.sourceforge.simplegamenet.chess.ChessGridSize
GRID_HEIGHT, GRID_WIDTH
 
Constructor Summary
ChessRook(int participantOwnerIndex, int x, int y)
           
 
Method Summary
 Object clone()
           
 void doMove(ChessPiece[] pieceGrid, int destinationX, int destinationY)
           
 int getPieceType()
           
 int getPieceValue()
           
 boolean isMoveAllowed(ChessPiece[] pieceGrid, int destinationX, int destinationY)
           
 boolean isUnmoved()
           
 
Methods inherited from class net.sourceforge.simplegamenet.chess.ChessPiece
getParticipantsOwnerIndex, getX, getY, isInPlayField
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ChessRook

public ChessRook(int participantOwnerIndex,
                 int x,
                 int y)
Method Detail

isMoveAllowed

public boolean isMoveAllowed(ChessPiece[] pieceGrid,
                             int destinationX,
                             int destinationY)
Specified by:
isMoveAllowed in class ChessPiece

doMove

public void doMove(ChessPiece[] pieceGrid,
                   int destinationX,
                   int destinationY)
Overrides:
doMove in class ChessPiece

clone

public Object clone()
Overrides:
clone in class ChessPiece

isUnmoved

public boolean isUnmoved()

getPieceType

public int getPieceType()
Specified by:
getPieceType in class ChessPiece

getPieceValue

public int getPieceValue()
Specified by:
getPieceValue in class ChessPiece


Copyright © 2003-2004 The 3 Belgians. All Rights Reserved.