|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--be.madoka.aardbei.sokoban.Position
Represents a Position.
Constructor Summary | |
Position(int posX,
int posY)
Default constructor. |
Method Summary | |
boolean |
equals(Position position)
Compares with a given Position. |
int |
getX()
Gives the X-position. |
int |
getY()
Gives the Y-position. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Position(int posX, int posY)
posX
- the X-positionposY
- the Y-positionMethod Detail |
public int getX()
int
giving the position on the X-axispublic int getY()
int
giving the position on the Y-axispublic boolean equals(Position position)
position
- the Position to compare with
boolean
specifying whether the Positions are equal or not
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |