Package org.hagneva1.chess
Class Spot
- java.lang.Object
-
- org.hagneva1.chess.Spot
-
public class Spot extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Spot(int x, int y)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Spot spot)static SpotfindByCoord(int x, int y)static SpotfindById(int id)intgetId()intgetX()intgetY()voidsetId(int id)voidsetX(int x)voidsetY(int y)PiecewhatPiece()
-
-
-
Method Detail
-
getId
public int getId()
-
setId
public void setId(int id)
-
getY
public int getY()
-
setY
public void setY(int y)
-
getX
public int getX()
-
setX
public void setX(int x)
-
equals
public boolean equals(Spot spot)
-
whatPiece
public Piece whatPiece()
-
findByCoord
public static Spot findByCoord(int x, int y)
-
findById
public static Spot findById(int id) throws java.security.InvalidParameterException
- Throws:
java.security.InvalidParameterException
-
-