Module app
Package app.core.game

Interface Piece

All Known Implementing Classes:
AbstractChessPiece, Bishop, CheckersPiece, ChessPiece, King, Knight, MinesweeperPiece, Pawn, Queen, Rook

public interface Piece
Abstract piece for any game
  • Method Summary

    Modifier and Type
    Method
    Description
    int
     
     
    boolean
     
  • Method Details

    • getPosition

      Field getPosition()
      Returns:
      position this piece is located at
    • isAlive

      boolean isAlive()
      Returns:
      true if piece is still in game, false otherwise
    • getPlayer

      int getPlayer()
      Returns:
      id of player that can play with this piece