rules
Class King
java.lang.Object
core.Piece
rules.King
public class King
- extends Piece
King piece
Constructor Summary |
King(Color color,
int lastMove)
|
King
public King(Color color,
int lastMove)
- See Also:
Piece
getName
protected String getName()
- Specified by:
getName
in class Piece
- See Also:
Piece
moveCandidates
public Collection<Move> moveCandidates(GameState g,
Position here)
- Specified by:
moveCandidates
in class Piece
- See Also:
Piece
pieceString
public String pieceString()
- Specified by:
pieceString
in class Piece
- See Also:
Piece
threatens
public static boolean threatens(GameState g,
Color color,
Position pos)
hashCode
public int hashCode()
- Description copied from class:
Piece
- This should be unique for different pieces or different
colors.
- Specified by:
hashCode
in class Piece