mixmeta4
Class Winthrop

java.lang.Object
  extended by mixmeta4.Piece
      extended by mixmeta4.Winthrop
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable

public class Winthrop
extends Piece

Winthrop (W,w) moves up to 4 squares horizontally or vertically.

See Also:
Serialized Form

Field Summary
static java.awt.Point[][] BLACK_DEST
           
static java.awt.Point[][] RED_DEST
           
 
Fields inherited from class mixmeta4.Piece
gui, isRed, square
 
Constructor Summary
Winthrop(boolean isRed, boolean visible)
           
 
Method Summary
 java.lang.Object clone()
           
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class mixmeta4.Piece
getDests, getDirections, getIsRed, getSquare
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

RED_DEST

public static java.awt.Point[][] RED_DEST

BLACK_DEST

public static java.awt.Point[][] BLACK_DEST
Constructor Detail

Winthrop

public Winthrop(boolean isRed,
                boolean visible)
Method Detail

clone

public java.lang.Object clone()
Overrides:
clone in class Piece

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class Piece