Class KingPiece

java.lang.Object
  extended by Piece
      extended by KingPiece

public class KingPiece
extends Piece

This is a class representing a king piece (a piece that has been kinged)

Author:

Constructor Summary
KingPiece(java.awt.Color c)
          This constructor creates a king piece object
 
Method Summary
 int getType()
          This method returns the type of piece that this object is
 
Methods inherited from class Piece
getColor
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KingPiece

public KingPiece(java.awt.Color c)
This constructor creates a king piece object

Parameters:
c - - the color of this king piece
pc - - the possible captures of this king piece
pm - - the possible moves of this king piece
Method Detail

getType

public int getType()
This method returns the type of piece that this object is

Returns:
1 for the king piece representation