- All Known Implementing Classes:
AbstractChessPiece
,Bishop
,CheckersPiece
,ChessPiece
,King
,Knight
,MinesweeperPiece
,Pawn
,Queen
,Rook
public interface Piece
Abstract piece for any game
-
Method Summary
-
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
-