|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcore.Piece
rules.Pawn
public class Pawn
Pawn piece.
| Field Summary |
|---|
| Fields inherited from class core.Piece |
|---|
color |
| Constructor Summary | |
|---|---|
Pawn(Color color,
int lastMove)
|
|
| Method Summary | |
|---|---|
protected String |
getName()
|
int |
hashCode()
This should be unique for different pieces or different colors. |
Collection<Move> |
moveCandidates(GameState g,
Position here)
|
String |
pieceString()
|
static boolean |
threatens(GameState g,
Color color,
Position pos)
|
| Methods inherited from class core.Piece |
|---|
getColor, getLastMove, postMove, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Pawn(Color color,
int lastMove)
| Method Detail |
|---|
protected String getName()
getName in class Piecepublic String pieceString()
pieceString in class Piece
public Collection<Move> moveCandidates(GameState g,
Position here)
moveCandidates in class PiecePiece
public static boolean threatens(GameState g,
Color color,
Position pos)
Piecepublic int hashCode()
Piece
hashCode in class Piece
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||