|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.flexgen.map.MapTileLocation
public class MapTileLocation
Class representing the location of a map tile in a map.
Constructor Summary | |
---|---|
MapTileLocation(int x,
int y)
Construct a map tile location. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
Determines whether or not this map tile location is equal to another map tile location. |
MapTileLocation[] |
getNeighborLocations()
Get an array of map tile locations that are neighbors of this map tile location. |
int |
getX()
Get the X coordinate of the map tile location. |
int |
getY()
Get the Y coordinate of the map tile location. |
int |
hashCode()
Returns a hash code value for the object. |
java.lang.String |
toString()
Get the string representation of this object. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public MapTileLocation(int x, int y)
x
- X coordinate of the map tile location.y
- Y coordinate of the map tile location.Method Detail |
---|
public int getX()
public int getY()
public MapTileLocation[] getNeighborLocations()
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- The map tile location against which to compare this map tile location.
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 |
Copyright © 2009 - Jeffrey J. Weston <jjweston@gmail.com>
All rights reserved. Use is subject to license terms.