public class Location
{
    public Location(int row, int col)
    {
        myRow = row;
        myCol = col;
    }

    public int getRow()
    {
        return myRow;
    }

    public int getCol()
    {
        return myCol;
    }

    public boolean equals(Location other)
    {
        return this.getRow() == other.getRow() && this.getCol() == other.getCol();
    }

    public String toString()
    {
        return "(" + getRow() + ", " + getCol() + ")";
    }
	
    private int myRow;
    private int myCol;

    public static final int LEFT = -90;
    public static final int RIGHT = 90;
    public static final int HALF_LEFT = -45;
    public static final int HALF_RIGHT = 45;
    public static final int FULL_CIRCLE = 360;
    public static final int HALF_CIRCLE = 180;
    
    public static final int NORTH = 0;
    public static final int NORTHEAST = 45;
    public static final int EAST = 90;
    public static final int SOUTHEAST = 135;
    public static final int SOUTH = 180;
    public static final int SOUTHWEST = 225;
    public static final int WEST = 270;
    public static final int NORTHWEST = 315;
}

