|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectmodel.moves.Move
model.moves.Castling
public class Castling
Represents the move of the small and great castling
| Constructor Summary | |
|---|---|
Castling(Cell from,
Cell to)
constructor: Creates a new Castling move, using destination and source Cell(s) as parameters. |
|
| Method Summary | |
|---|---|
boolean |
move(ChessBoard x)
transformer(mutative): Applies a Castling move on the given ChessBoard. |
void |
prev(ChessBoard x)
transformer(mutative): Takes the ChessBoard a move back. |
java.lang.String |
toString()
accessor(selector): Creates a String representation of the Castling move. |
| Methods inherited from class model.moves.Move |
|---|
equals, getFrom, getTo |
| Methods inherited from class java.lang.Object |
|---|
getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Castling(Cell from,
Cell to)
from - source Cell.to - destination Cell.| Method Detail |
|---|
public boolean move(ChessBoard x)
move in class Movex - Is the ChessBoard the changes will be applied.
public void prev(ChessBoard x)
prev in class Movex - is the ChessBoard that the changes will be applied.public java.lang.String toString()
toString in class Move
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||