public class EdgeLocation
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private EdgeDirection |
dir |
private HexLocation |
hexLoc |
| Constructor and Description |
|---|
EdgeLocation(HexLocation hexLoc,
EdgeDirection dir) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
EdgeDirection |
getDir() |
HexLocation |
getHexLoc() |
EdgeLocation |
getNormalizedLocation()
Returns a canonical (i.e., unique) value for this edge location.
|
int |
hashCode() |
private void |
setDir(EdgeDirection dir) |
private void |
setHexLoc(HexLocation hexLoc) |
java.lang.String |
toString() |
private HexLocation hexLoc
private EdgeDirection dir
public EdgeLocation(HexLocation hexLoc, EdgeDirection dir)
public HexLocation getHexLoc()
private void setHexLoc(HexLocation hexLoc)
public EdgeDirection getDir()
private void setDir(EdgeDirection dir)
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 EdgeLocation getNormalizedLocation()