|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuniversum.bi.Location
public final class Location
Location defines the point in the space of game universe. Usually user is not intended to create new locations with constructor but get existing location using methods of BeingInterface. In rare occasions where you do need to create new location and absolutely sure about topology you're running on, use BeingInterface.createLocation()
BeingInterface
Constructor Summary | |
---|---|
Location(int x,
int y)
Deprecated. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object other)
|
int |
getX()
Return x coordinate of this location, actual semantic of this function depends on topology and may be something not so intuitive. |
int |
getY()
Return y coordinate of this location, , actual semantic of this function depends on topology and may be something not so intuitive. |
int |
hashCode()
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
@Deprecated public Location(int x, int y)
EntityInterface.createLocation(Object...)
Method Detail |
---|
public int getX()
public int getY()
public boolean equals(java.lang.Object other)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |