Class SinglePiece

java.lang.Object
  extended by Piece
      extended by SinglePiece

public class SinglePiece
extends Piece

This is a class representing a single piece (a piece that has not been kinged yet)

Author:

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

Constructor Detail

SinglePiece

public SinglePiece(java.awt.Color c)
This constructor creates a single piece checker object

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

getType

public int getType()
This method returns that the type of the checker is single

Returns:
type which is 0 for single