java.lang.Object
cz.cvut.fel.pjv.model.Spot
- All Implemented Interfaces:
java.io.Serializable
public class Spot
extends java.lang.Object
implements java.io.Serializable
Represent a cell on the chess board
- See Also:
- Serialized Form
-
Constructor Summary
-
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Spot
Create object of spot- Parameters:
piece-x-y-
-
Spot
-
-
Method Details
-
getPiece
-
getX
public int getX() -
getY
public int getY() -
setPiece
-
isSpotNull
public boolean isSpotNull()If the spot is empty, return true- Returns:
-
setX
public void setX(int x) -
setY
public void setY(int y)
-