Package jadex.bdiv3.examples.puzzle
Class Piece
- java.lang.Object
-
- jadex.bdiv3.examples.puzzle.Piece
-
- All Implemented Interfaces:
java.io.Serializable
public class Piece extends java.lang.Object implements java.io.Serializable
A piece for playing.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected boolean
is_white
The piece color (white or black).
-
Constructor Summary
Constructors Constructor Description Piece(boolean is_white)
Create a new board.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isWhite()
Test, if it is a white piece.java.lang.String
toString()
Get the string representation.
-