public class ChessPiece extends Object implements Serializable
| Modifier | Constructor and Description |
|---|---|
protected |
ChessPiece() |
|
ChessPiece(ChessPieceType type,
ChessSide side) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
Character |
getAsSingleCharacter()
Get this piece representation as a single character.
|
String |
getInitials() |
ChessSide |
getSide() |
ChessPieceType |
getType() |
int |
hashCode() |
String |
toString() |
protected ChessPiece()
public ChessPiece(ChessPieceType type, ChessSide side)
public ChessPieceType getType()
public ChessSide getSide()
public String getInitials()
public Character getAsSingleCharacter()
Copyright © 2017. All rights reserved.