bill.util
Class CoordinateXY

java.lang.Object
  |
  +--bill.util.CoordinateXY

public class CoordinateXY
extends Object

This class is used in a 2D world to represent a set of coordinates.


Constructor Summary
CoordinateXY(int x, int y)
          The creator.
 
Method Summary
 int getX()
          Getter for the X position of the coordinate.
 int getY()
          Getter for the Y position of the coordinate.
 void setX(int x)
          Setter for the X position of the coordinate.
 void setY(int y)
          Setter for the Y position of the coordinate.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CoordinateXY

public CoordinateXY(int x,
                    int y)
The creator.
Parameters:
x - The X position of the coordinate.
y - The Y position of the coordinate.
Method Detail

setX

public void setX(int x)
Setter for the X position of the coordinate.
Parameters:
x - Value to set the X position to.

getX

public int getX()
Getter for the X position of the coordinate.
Returns:
The class instance's X coordinate (i.e. column).

setY

public void setY(int y)
Setter for the Y position of the coordinate.
Parameters:
y - Value to set the Y position to.

getY

public int getY()
Getter for the Y position of the coordinate.
Returns:
The class instance's Y coordinate (i.e. row).