Package jadex.web.examples.puzzle
Class Piece
- java.lang.Object
- 
- jadex.web.examples.puzzle.Piece
 
- 
- All Implemented Interfaces:
- java.io.Serializable,- java.lang.Cloneable
 
 public class Piece extends java.lang.Object implements java.io.Serializable, java.lang.CloneableA piece for playing.- See Also:
- Serialized Form
 
- 
- 
Field SummaryFields Modifier and Type Field Description protected booleanwhiteThe piece color (white or black).
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectclone()Clone the object.booleanisWhite()Test, if it is a white piece.voidsetWhite(boolean white)Set tu true, if it is a white piece.java.lang.StringtoString()Get the string representation.
 
- 
- 
- 
Method Detail- 
isWhitepublic boolean isWhite() Test, if it is a white piece.- Returns:
- True, if it a white piece.
 
 - 
setWhitepublic void setWhite(boolean white) Set tu true, if it is a white piece.
 - 
toStringpublic java.lang.String toString() Get the string representation.- Overrides:
- toStringin class- java.lang.Object
- Returns:
- The string representation.
 
 - 
clonepublic java.lang.Object clone() Clone the object.- Overrides:
- clonein class- java.lang.Object
- Returns:
- The clone.
 
 
- 
 
-