public class VertexLocation
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private VertexDirection |
dir |
private HexLocation |
hexLoc |
| Constructor and Description |
|---|
VertexLocation(HexLocation hexLoc,
VertexDirection dir) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
VertexDirection |
getDir() |
HexLocation |
getHexLoc() |
VertexLocation |
getNormalizedLocation()
Returns a canonical (i.e., unique) value for this vertex location.
|
int |
hashCode() |
private void |
setDir(VertexDirection direction) |
private void |
setHexLoc(HexLocation hexLoc) |
java.lang.String |
toString() |
private HexLocation hexLoc
private VertexDirection dir
public VertexLocation(HexLocation hexLoc, VertexDirection dir)
public HexLocation getHexLoc()
private void setHexLoc(HexLocation hexLoc)
public VertexDirection getDir()
private void setDir(VertexDirection direction)
public java.lang.String toString()
toString in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic VertexLocation getNormalizedLocation()