|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.flexgen.map.MapTile
public class MapTile
Class representing a map tile. Contains the type and orientation for the map tile.
Constructor Summary | |
---|---|
MapTile(MapTileType mapTileType,
MapTileOrientation mapTileOrientation)
Construct a map tile. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
Determines whether or not this map tile is equal to another map tile. |
MapTileEdge |
getMapTileEdge(MapTileEdgePosition mapTileEdgePosition)
Get the map tile edge at the specified position in this map tile. |
MapUnit |
getMapUnit(int x,
int y)
Get the map unit at the specified coordinates in this map tile. |
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 MapTile(MapTileType mapTileType, MapTileOrientation mapTileOrientation)
mapTileType
- Type of the map tile. Cannot be null.mapTileOrientation
- Orientation of the map tile. Cannot be null.Method Detail |
---|
public MapUnit getMapUnit(int x, int y)
x
- X coordinate of the map unit to get. Must be greater than or equal to 0. Must be
less than the size of the array of map units defining the map tile type for this
map tile.y
- Y coordinate of the map unit to get. Must be greater than or equal to 0. Must be
less than the size of the array of map units defining the map tile type for this
map tile.
public MapTileEdge getMapTileEdge(MapTileEdgePosition mapTileEdgePosition)
mapTileEdgePosition
- Position of the map tile edge to get.
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 against which to compare this map tile.
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.