|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectmixmeta4.Piece
public class Piece
Field Summary | |
---|---|
PieceGUI |
gui
|
boolean |
isRed
deprecated: use getIsRed() to get the colour |
Square |
square
deprecated: use getSquare() to get the square |
Constructor Summary | |
---|---|
Piece()
|
|
Piece(boolean isRed,
java.awt.Point[][] redDests,
java.awt.Point[][] blackDests)
|
|
Piece(boolean isRed,
java.awt.Point[] redDirections,
java.awt.Point[] blackDirections)
|
Method Summary | |
---|---|
java.lang.Object |
clone()
|
java.awt.Point[][] |
getDests()
You shouldn't need to use this directly. |
java.awt.Point[] |
getDirections()
You shouldn't need to use this directly. |
boolean |
getIsRed()
Return true if the piece is Red. |
Square |
getSquare()
Return the square on which this piece is located. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public PieceGUI gui
public Square square
public boolean isRed
Constructor Detail |
---|
public Piece(boolean isRed, java.awt.Point[] redDirections, java.awt.Point[] blackDirections)
public Piece(boolean isRed, java.awt.Point[][] redDests, java.awt.Point[][] blackDests)
public Piece()
Method Detail |
---|
public java.lang.Object clone()
clone
in class java.lang.Object
public Square getSquare()
public boolean getIsRed()
public java.awt.Point[] getDirections()
public java.awt.Point[][] getDests()
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |