|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcore.Piece
rules.King
public class King
King piece
| Field Summary |
|---|
| Fields inherited from class core.Piece |
|---|
color |
| Constructor Summary | |
|---|---|
King(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 King(Color color,
int lastMove)
Piece| Method Detail |
|---|
protected String getName()
getName in class PiecePiece
public Collection<Move> moveCandidates(GameState g,
Position here)
moveCandidates in class PiecePiecepublic String pieceString()
pieceString in class PiecePiece
public static boolean threatens(GameState g,
Color color,
Position pos)
public int hashCode()
Piece
hashCode in class Piece
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||