java.lang.Object
cz.cvut.fel.pjv.model.Move
- All Implemented Interfaces:
java.io.Serializable
public class Move
extends java.lang.Object
implements java.io.Serializable
Class definition move of player
- See Also:
- Serialized Form
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description SpotgetEnd()PiecegetPieceKilled()PiecegetPieceMoved()PlayergetPlayer()SpotgetStart()booleanisElPassant()booleanisLongCastlingMove()booleanisPromotion()booleanisShortCastlingMove()voidsetElPassant(boolean elPassant)voidsetEnd(Spot end)voidsetLongCastlingMove(boolean longCastlingMove)voidsetPieceKilled(Piece pieceKilled)voidsetPieceMoved(Piece pieceMoved)voidsetPlayer(Player player)voidsetPromotion(boolean promotion)voidsetShortCastlingMove(boolean shortCastlingMove)voidsetStart(Spot start)Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Move
Create move object- Parameters:
player-start- spotend- spot
-
Move
Create move object- Parameters:
move-
-
-
Method Details
-
setPromotion
public void setPromotion(boolean promotion) -
isPromotion
public boolean isPromotion() -
setShortCastlingMove
public void setShortCastlingMove(boolean shortCastlingMove) -
setLongCastlingMove
public void setLongCastlingMove(boolean longCastlingMove) -
isShortCastlingMove
public boolean isShortCastlingMove() -
isLongCastlingMove
public boolean isLongCastlingMove() -
setElPassant
public void setElPassant(boolean elPassant) -
isElPassant
public boolean isElPassant() -
getPlayer
-
getStart
-
getEnd
-
getPieceMoved
-
getPieceKilled
-
setPlayer
-
setStart
-
setEnd
-
setPieceMoved
-
setPieceKilled
-