Package net.sf.colossus.variant
Class Hex
java.lang.Object
net.sf.colossus.variant.Hex
Class Hex describes one general hex.
- Author:
- David Ripton
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
label
-
xCoord
private final int xCoord -
yCoord
private final int yCoord
-
-
Constructor Details
-
Hex
-
-
Method Details
-
getLabel
-
getTerrainName
-
getDescription
-
toString
-
getXCoord
public int getXCoord() -
getYCoord
public int getYCoord() -
hashCode
public int hashCode() -
equals
We consider two hexes equal if their x/y coordinates are the same. This gives equality within the context of a HexMap, since we don't know to which map the Hex belongs we can't do any better.
-