rules
Class Pawn
java.lang.Object
core.Piece
rules.Pawn
public class Pawn
- extends Piece
Pawn piece.
Constructor Summary |
Pawn(Color color,
int lastMove)
|
Pawn
public Pawn(Color color,
int lastMove)
getName
protected String getName()
- Specified by:
getName
in class Piece
pieceString
public String pieceString()
- Specified by:
pieceString
in class Piece
moveCandidates
public Collection<Move> moveCandidates(GameState g,
Position here)
- Specified by:
moveCandidates
in class Piece
- See Also:
Piece
threatens
public static boolean threatens(GameState g,
Color color,
Position pos)
- See Also:
Piece
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