universum.bi
Class Location

java.lang.Object
  extended by universum.bi.Location

public final class Location
extends java.lang.Object

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()

See Also:
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

Location

@Deprecated
public Location(int x,
                           int y)
Deprecated. 

Create new location in 2D discreet topology. Don't use this constuctor unless you have to, as it will eventually be removed. Use BeingInterface.createLocation(x,y).

See Also:
EntityInterface.createLocation(Object...)
Method Detail

getX

public int getX()
Return x coordinate of this location, actual semantic of this function depends on topology and may be something not so intuitive.


getY

public int getY()
Return y coordinate of this location, , actual semantic of this function depends on topology and may be something not so intuitive.


equals

public boolean equals(java.lang.Object other)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object