aima.basic
Class XYLocation
java.lang.Object
aima.basic.XYLocation
public class XYLocation
- extends java.lang.Object
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
XYLocation
public XYLocation(int i,
int j)
getXCoOrdinate
public int getXCoOrdinate()
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in class java.lang.Object
getYCoOrdinate
public int getYCoOrdinate()
west
public XYLocation west()
east
public XYLocation east()
north
public XYLocation north()
south
public XYLocation south()
right
public XYLocation right()
left
public XYLocation left()
up
public XYLocation up()
down
public XYLocation down()
locationAt
public XYLocation locationAt(java.lang.String direction)
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object