rules
Class Queen

java.lang.Object
  extended by core.Piece
      extended by rules.StraightPiece
          extended by rules.Queen

public class Queen
extends StraightPiece

Queen piece.


Field Summary
 
Fields inherited from class rules.StraightPiece
goodSum
 
Fields inherited from class core.Piece
color
 
Constructor Summary
Queen(Color color, int lastMove)
           
 
Method Summary
protected  StraightPiece constructor(Color color, int lastMove)
           
protected  String getName()
           
 int hashCode()
          This should be unique for different pieces or different colors.
 String pieceString()
           
 
Methods inherited from class rules.StraightPiece
getGoodSum, moveCandidates, threatens
 
Methods inherited from class core.Piece
getColor, getLastMove, postMove, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Queen

public Queen(Color color,
             int lastMove)
See Also:
Piece
Method Detail

getName

protected String getName()
Specified by:
getName in class Piece
See Also:
Piece

constructor

protected StraightPiece constructor(Color color,
                                    int lastMove)
Specified by:
constructor in class StraightPiece
See Also:
Piece

pieceString

public String pieceString()
Specified by:
pieceString in class Piece
See Also:
Piece

hashCode

public int hashCode()
Description copied from class: Piece
This should be unique for different pieces or different colors.

Specified by:
hashCode in class Piece