rl.common.mapping
Class PlanetHexGrid
java.lang.Object
rl.common.mapping.PlanetHexGrid
public class PlanetHexGrid
- extends java.lang.Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BaseXOffset
protected final int BaseXOffset
- See Also:
- Constant Field Values
BaseYOffset
protected final int BaseYOffset
- See Also:
- Constant Field Values
m_ClipRegion
protected java.awt.Polygon m_ClipRegion
PlanetHexGrid
public PlanetHexGrid(int size)
getRowStarts
protected int getRowStarts(int Row)
getRowEnds
protected int getRowEnds(int Row)
getSize
public java.awt.Dimension getSize()
initialiseRows
protected void initialiseRows()
factorial
public int factorial(int num)
initialiseMap
protected void initialiseMap(int Size)
getMapBoundary
protected void getMapBoundary()
drawGrid
public void drawGrid(java.awt.Graphics2D comp2D)
drawHexes
public void drawHexes(java.awt.Graphics2D comp2D,
java.util.Vector<PlanetHexGrid.Sector> sectors,
boolean highlight)
setWorldClip
protected void setWorldClip(java.awt.Graphics2D comp)
getSector
public PlanetHexGrid.Sector getSector(int hexIndex)
getHexNeighbours
public java.util.Vector<PlanetHexGrid.Sector> getHexNeighbours(int hexIndex)
calculateHexNeighbours
protected void calculateHexNeighbours(int Size)