public class TileID extends java.lang.Object implements java.lang.Comparable<TileID>
We assume all tiles refer to positions with a quad tree starting at (0,0,0).
| Modifier and Type | Field and Description |
|---|---|
int |
level
Level refers to the level within the quad tree.
|
int |
x
Horizontal position in the quad tree.
|
int |
y
Vertical position in the quad tree.
|
| Constructor and Description |
|---|
TileID() |
TileID(int inX,
int inY,
int inLevel)
Construct with x,y, and level.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(TileID that) |
boolean |
equals(java.lang.Object that) |
int |
hashCode() |
java.lang.String |
toString() |
public int level
public int x
public int y
public TileID()
public TileID(int inX,
int inY,
int inLevel)
inX - The horizontal tileinY - Vertical tileinLevel - Level in the quad tree.public java.lang.String toString()
toString in class java.lang.Objectpublic int compareTo(TileID that)
compareTo in interface java.lang.Comparable<TileID>public boolean equals(java.lang.Object that)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object