|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--Position
| Field Summary | |
protected int |
x
|
protected int |
y
|
| Constructor Summary | |
Position(int x,
int y)
Creates a new instance of Position |
|
| Method Summary | |
int |
getXPos()
This method gets the x coordinates of the Position P.S. |
int |
getYPos()
This method gets the y coordinates of the Position P.S. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected int x
protected int y
| Constructor Detail |
public Position(int x,
int y)
| Method Detail |
public int getXPos()
Position instance
for the object whose position you wish to communicate
int valuepublic int getYPos()
Position instance
for the pawn whose position you wish to communicate
int value
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||