Class Piece

java.lang.Object
jadex.bdi.puzzle.Piece
All Implemented Interfaces:
Serializable

public class Piece extends Object implements Serializable
A piece for playing.
See Also:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected boolean
    The piece color (white or black).
  • Constructor Summary

    Constructors
    Constructor
    Description
    Piece(boolean is_white)
    Create a new board.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Test, if it is a white piece.
    Get the string representation.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

    • is_white

      protected boolean is_white
      The piece color (white or black).
  • Constructor Details

    • Piece

      public Piece(boolean is_white)
      Create a new board.
  • Method Details

    • isWhite

      public boolean isWhite()
      Test, if it is a white piece.
      Returns:
      True, if it a white piece.
    • toString

      public String toString()
      Get the string representation.
      Overrides:
      toString in class Object
      Returns:
      The string representation.