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.Cloneable
A piece for playing.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected boolean
white
The piece color (white or black).
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
clone()
Clone the object.boolean
isWhite()
Test, if it is a white piece.void
setWhite(boolean white)
Set tu true, if it is a white piece.java.lang.String
toString()
Get the string representation.
-
-
-
Method Detail
-
isWhite
public boolean isWhite()
Test, if it is a white piece.- Returns:
- True, if it a white piece.
-
setWhite
public void setWhite(boolean white)
Set tu true, if it is a white piece.
-
toString
public java.lang.String toString()
Get the string representation.- Overrides:
toString
in classjava.lang.Object
- Returns:
- The string representation.
-
clone
public java.lang.Object clone()
Clone the object.- Overrides:
clone
in classjava.lang.Object
- Returns:
- The clone.
-
-