rl.common.mapping
Class PlanetHexGrid.Sector

java.lang.Object
  extended by rl.common.mapping.PlanetHexGrid.Sector
Enclosing class:
PlanetHexGrid

public class PlanetHexGrid.Sector
extends java.lang.Object


Constructor Summary
PlanetHexGrid.Sector(PlanetHexGrid.PlanetArea area, int index, boolean northernHemisphere, PlanetHexagon hex, boolean tropic)
           
 
Method Summary
 void draw(java.awt.Graphics comp, boolean highlight)
           
 PlanetHexagon getHex()
           
 int getHexNeighbour(int direction)
           
 java.util.Vector<java.lang.Integer> getHexNeighbours()
           
 int getIndex()
           
 PlanetHexGrid.PlanetArea getPlanetArea()
           
 boolean isNorthernHemisphere()
           
 boolean isTropic()
           
 void setHexNeighbour(int direction, int index)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PlanetHexGrid.Sector

public PlanetHexGrid.Sector(PlanetHexGrid.PlanetArea area,
                            int index,
                            boolean northernHemisphere,
                            PlanetHexagon hex,
                            boolean tropic)
Method Detail

getPlanetArea

public PlanetHexGrid.PlanetArea getPlanetArea()

getIndex

public int getIndex()

isNorthernHemisphere

public boolean isNorthernHemisphere()

getHex

public PlanetHexagon getHex()

isTropic

public boolean isTropic()

draw

public void draw(java.awt.Graphics comp,
                 boolean highlight)

setHexNeighbour

public void setHexNeighbour(int direction,
                            int index)

getHexNeighbour

public int getHexNeighbour(int direction)

getHexNeighbours

public java.util.Vector<java.lang.Integer> getHexNeighbours()