Internet Chess ToolKit
v0.2.0

ictk.boardgame
Interface Location

All Known Implementing Classes:
Square

public interface Location

this is your standard square, position, or coordinate point on the playing board.


Method Summary
 Piece getPiece()
          returns the piece that is currently occupying this location.
 int getX()
          this is the internal horizontal coordinate for the position.
 int getY()
          this is the internal vertical coordinate for the position.
 Piece setPiece(Piece p)
          sets the piece for this location.
 void setX(int x)
           
 void setY(int y)
           
 

Method Detail

getX

public int getX()
this is the internal horizontal coordinate for the position.


getY

public int getY()
this is the internal vertical coordinate for the position.


getPiece

public Piece getPiece()
returns the piece that is currently occupying this location.


setX

public void setX(int x)

setY

public void setY(int y)

setPiece

public Piece setPiece(Piece p)
sets the piece for this location.


Submit a bug or feature
Visit the Website
Internet Chess ToolKit is licensed under the GPL v2 .