|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jrummikub.model.Position
public class Position
Stone
Position class to determine positions on Table
or
Hand
Constructor Summary | |
---|---|
Position(float x,
float y)
Create a new position by specifying the coordinates |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
|
float |
getX()
Get the x coordinate of the position |
float |
getY()
Get the y coordinate of the position |
int |
hashCode()
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Position(float x, float y)
x
- x coordinatey
- y coordinateMethod Detail |
---|
public float getX()
public float getY()
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |